Hello,
I have a Bourne shell script that uses a small text file (example below). How can I re-order each of the lines in reverse order and write out to another file?
Original File Contents
Desired File Contents
Thanks,
JT
I have a Bourne shell script that uses a small text file (example below). How can I re-order each of the lines in reverse order and write out to another file?
Original File Contents
Code:
A xxxx xxx xxx
B xxx xxx
C xxxxxx x
D xxxxxxxx
Desired File Contents
Code:
D xxxxxxxx
C xxxxxx x
B xxx xxx
A xxxx xxx xxx
Thanks,
JT