asciiConvert

This commit is contained in:
root 2017-06-21 17:43:26 +02:00
parent b4ceec8c91
commit 5c6928cd91
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
packages packages
test

7
asciiConvert.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
: ${1?"Aufruf: $0 <ascii text Datei>"}
while read line; do
escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g')
echo "echo -e \"$escapedLine\""
done < $1