2019-03-14 12:13:52 +01:00
|
|
|
|
#!/bin/sh
|
2019-03-14 19:58:42 +01:00
|
|
|
|
for i in ZP*.TXT; do
|
|
|
|
|
sed -r 's/\x1b\[\?7h//g; s/\x1b\[255D//g; s/\x1b\[40m(\r\n)+\x1b\[0m/\x1b\[40m\x1b\[0m/g;' $i | tr -d '\n' > out/$i
|
|
|
|
|
echo -n "[0;0H" >> out/$i
|
|
|
|
|
echo "$i > out/$i"
|
|
|
|
|
done
|