From 5c6928cd91ffdd937ba58af5987b707594dfc0c1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Jun 2017 17:43:26 +0200 Subject: [PATCH] asciiConvert --- .gitignore | 1 + asciiConvert.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 asciiConvert.sh diff --git a/.gitignore b/.gitignore index f9ced93..995a683 100755 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ packages +test diff --git a/asciiConvert.sh b/asciiConvert.sh new file mode 100755 index 0000000..67bd794 --- /dev/null +++ b/asciiConvert.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