Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a CRLF to a text file

Status
Not open for further replies.

casorter

Programmer
Nov 19, 2003
15
US
i have need of a dos based text file complete with CRLF at the end of each line. will the lfoncr utility supply this

thanks for the help

mark

 
man xtod
or:
awk '{print $0"\r"}' /path/to/unixfile > dosfile

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I didn't know which OS and version (OSR, UnixWare, OpenLinux, ...), so I gave a general awk script.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
some versions add the correct contents with doscp.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top