shell-scripte-code/asciiConvert1.sh

8 lines
184 B
Bash
Raw Normal View History

2019-01-07 20:23:02 +01:00
#!/usr/bin/env bash
2017-06-21 21:55:11 +02:00
: ${1?"Aufruf: $0 <ascii text Datei>"}
while read line; do
escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g')
echo "echo -e \"$escapedLine\""
done < $1