aboutsummaryrefslogtreecommitdiffstats
path: root/stringify.sh
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-06-21 22:22:42 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-06-21 22:22:42 +0200
commitcdc6be2e04cbb8346d308748a676aecb3edd8f0e (patch)
treea7f2dd29b5a3728afec0b08b3c7037a6502af1bc /stringify.sh
parenta769a2ade28863789678c8ea2ef22849ac2ba32d (diff)
downloadvconsole-cdc6be2e04cbb8346d308748a676aecb3edd8f0e.tar.gz
xml file include logic
Diffstat (limited to 'stringify.sh')
-rwxr-xr-xstringify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/stringify.sh b/stringify.sh
new file mode 100755
index 0000000..bed5b7e
--- /dev/null
+++ b/stringify.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed -e 's/"/\\"/g' \
+ -e 's/\(.*\)/"\1\\n"/' \
+ < "$1" > "$2"