As pointed out in many postings and sites, one can use tr to remove octal 015 (^M or CR)
tr -d '\015' < oldfile > newfile
As pointed out in many postings and sites, one can use tr to remove octal 015 (^M or CR)
tr -d '\015' < oldfile > newfile
Well, been working way too hard, so here’s a bit of a humour break. The graph below shows the results of a user poll “What super-power do you wish you had”…

Thanks to Adam B for the tip!
© 2010 Allen Pomeroy. All Rights Reserved. This is the personal website of Allen Pomeroy. Opinions expressed are not necessarily those of my employer.