shell-scripte-code/asciiConvert1.sh
2019-01-07 20:23:02 +01:00

7 lines
184 B
Bash
Executable file

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