1
0
zpoint/td2zp.sh

7 lines
204 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
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 "" >> out/$i
echo "$i > out/$i"
done