aboutsummaryrefslogblamecommitdiffstats
path: root/doc/rat-cursors/to-text
blob: 998159bde7ff0497374a5dc2a7bff4a63a5c167c (plain) (tree)
1
2
3
4
5
6
7
8
9
         
 






                                                                                  
 
#!/bin/sh

data="$(sed 's/\(.\) /\1\1/g' | sed 's/\./ /g' | sed 's/@/X/g' | sed 's/ \+$//g')"

while [ $(echo "${data}" | grep -v '^ ' | grep -v '^$' | wc -l) = 0 ]; do
    data="$(echo "${data}" | sed 's/^ //')"
done

echo "${data}"