aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
Diffstat (limited to '.functions')
-rw-r--r--.functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/.functions b/.functions
index 0cdfebc..871275d 100644
--- a/.functions
+++ b/.functions
@@ -23,4 +23,10 @@ function digga() {
function escape() {
printf "\\\x%s" $(printf "$@" | xxd -p -c1 -u)
echo # newline
+}
+
+# Decode \x{ABCD}-style Unicode escape sequences
+function unidecode() {
+ perl -e "binmode(STDOUT, ':utf8'); print \"$@\""
+ echo # newline
} \ No newline at end of file