diff options
Diffstat (limited to 'nocompile/bin/unescape')
-rwxr-xr-x | nocompile/bin/unescape | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nocompile/bin/unescape b/nocompile/bin/unescape index c3cac84..c4560e4 100755 --- a/nocompile/bin/unescape +++ b/nocompile/bin/unescape @@ -1,7 +1,9 @@ #!/bin/sh if [ "_$1" != "_" ];then l="$1" + printf "$(echo "$l" | sed "s/%/\\\\x/g")\n" else - read l + while read -r l;do + printf "$(echo "$l" | sed "s/%/\\\\x/g")\n" + done fi -printf "$(echo "$l" | sed "s/%/\\\\x/g")" |