Hi,
I have a text file on my IBM AIX machine that contains many lines like this one:
^[E^[&k2G^[&l5H^[&f7y4X^[&
l0L^[&l6D^
[(8U^[(s0p
15.00h0s0b
4102T^[&k1
2H^[&a0h0V
^[&a5040v0
H
(The ^[ are escape characters)
I need this line changed to ^L (ctrl-L for form feed).
I need a sed or awk script that will convert the long line to a line that has ^L on it. I need the script to accept std input and write to std out. Like: cat my_text_file | your_script > updated_file
Thanks for your help.
Mark
Start Free Trial