shell-scripte-code/asciiConvert.sh

8 lines
176 B
Bash
Raw Normal View History

2017-06-21 17:43:26 +02:00
#!/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