shell-scripte-code/asciiConvert1.sh
2017-06-21 21:55:11 +02:00

7 lines
176 B
Bash
Executable file

#!/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