From 2fd0d7f8cdb8c7de691a129cee47241b85530a40 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Jun 2017 21:55:11 +0200 Subject: [PATCH] fix --- asciiConvert1.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 asciiConvert1.sh diff --git a/asciiConvert1.sh b/asciiConvert1.sh new file mode 100755 index 0000000..67bd794 --- /dev/null +++ b/asciiConvert1.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +: ${1?"Aufruf: $0 "} +while read line; do + escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g') + echo "echo -e \"$escapedLine\"" +done < $1