View Single Post
Posts: 6 | Thanked: 7 times | Joined on Jan 2010
#11
One way would be
tr -d '\015' < yourfile.sh > yournewfile.sh

(\015 means "octal 13", which is the CR or \r character)

Or use an editor that can control this. I can't really recommend one though (I know vim can do it, but vim isn't really a good editor to recommend to someone who likes leafpad...)
 

The Following User Says Thank You to fgevaerts For This Useful Post: