aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rat-cursors/to-text
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-15 00:48:09 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-15 00:48:09 +0200
commit32d6ff62288b4fdca9842467b0e88a035b70a6fa (patch)
tree6f3a3057c3365e09aef0fb60e5fc96540f3a75f7 /doc/rat-cursors/to-text
parentupdate todo (diff)
downloadmds-32d6ff62288b4fdca9842467b0e88a035b70a6fa.tar.gz
mds-32d6ff62288b4fdca9842467b0e88a035b70a6fa.tar.bz2
mds-32d6ff62288b4fdca9842467b0e88a035b70a6fa.tar.xz
doc: do not use X in icons + m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xdoc/rat-cursors/to-text7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/rat-cursors/to-text b/doc/rat-cursors/to-text
index 998159b..9bdcd7d 100755
--- a/doc/rat-cursors/to-text
+++ b/doc/rat-cursors/to-text
@@ -1,10 +1,13 @@
#!/bin/sh
-data="$(sed 's/\(.\) /\1\1/g' | sed 's/\./ /g' | sed 's/@/X/g' | sed 's/ \+$//g')"
+data="$(sed 's/\(.\) /\1\1/g' | sed 's/\./ /g' | sed 's/O/#/g' | sed 's/ \+$//g')"
while [ $(echo "${data}" | grep -v '^ ' | grep -v '^$' | wc -l) = 0 ]; do
data="$(echo "${data}" | sed 's/^ //')"
done
-echo "${data}"
+while [ "$(echo "${data}" | sed 1q)" = "" ]; do
+ data="$(echo "${data}" | sed 1d)"
+done
+echo "${data}"