diff --git a/.gitignore b/.gitignore index f9ced93..995a683 100755 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ packages +test diff --git a/asciiConvert.sh b/asciiConvert.sh new file mode 100755 index 0000000..67bd794 --- /dev/null +++ b/asciiConvert.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +: ${1?"Aufruf: $0 "} +while read line; do + escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g') + echo "echo -e \"$escapedLine\"" +done < $1