|I should know how to do this.... but how can I convert a stack of files
|from CRLF to LF format?
You'll get lots of answers suggesting recode, sed, tr, vi, perl, etc,
but my favourite is a program called flip, which you can find in Usenet
archives.
Why a specialised tool for what seems to be a simple job? flip, and
links to it called toms, and toix gets these things right:
Handles CR NL, NL CR, and other odd situations like text CR text CR NL
correctly.
Retains mod times of files.
Warns of non-ASCII characters in files before attempting conversion.
I think perhaps only recode is equally thorough.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug