converting text files between dos and AXI/unix
chrconv cmd /what is it
Either 320 or 360 at 3.2.5
Customer was looking for a conversion routine that would
strip carriage returns from dos files for use on AIX.
Determined that the following scrips would provide the
Dos to Unix(AIX):
sed 's/\^M//' dosfile > aixfile
For use in the opposite direction (adding the cr),
Unix(AIX) to Dos:
sed 's/$/\^M/' aixfile > dosfile
In both cases above it requires that a control character
be placed in the string. To do this in vi use cntrl-V followed
by cntrl-M to insert the cntrl-M.
Gave this to the customer.
Support Line: converting text files between dos and AXI/unix ITEM: AH2923L
Dated: April 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:27
Comments or suggestions?