What's the best way to convert CRLF's to line feeds in files on Linux?
I've seen sed commands, but is there anything simpler?
Answer
Use this command:
fromdos yourtextfile
The other way around:
todos yourtextfile
These commands are found in the tofrodos package (on most recent distributions), which also provides the two wrappers unix2dos and dos2unix that mimic the old unix tools of the same name.
No comments:
Post a Comment