I\'m working on a Mac, with some fairly old files. Different files were created by different programs, so some of them end with \\r (Mac) and some with \\n (Unix). I want to
As Jay said, Diff'nPatch seems what you are looking for. Alternatively you can convert all your '\r' line endings in '\n' in a single command like this:
sed -ie 's/\r/\n/' filename
or
find . | xargs -n1 sed -ie 's/\r/\n/'
(You may want to filter the list of files in some way in the latter case or it will be applied to all the files in all subdirectories.)