asciiConvert
This commit is contained in:
parent
b4ceec8c91
commit
5c6928cd91
2 changed files with 8 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
packages
|
packages
|
||||||
|
test
|
||||||
|
|
7
asciiConvert.sh
Executable file
7
asciiConvert.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue