Quoting Jima <jima at gimp.damnation.net>:


>  Quoting Thomas Eibner:
> 
> perl -pi -e 's/\r\n/\n/' file

Even though this won't work for the ftp problem, it is a valuable perl one-liner
that I have used more times than I can count. (No jokes please) It's especially
useful for changing URLs in a bunch of html docs. Include the i.bak option to
backup the file first. (just to be safe)

For a list of some other useful one-liners:
http://www.unixguide.net/unix/perl_oneliners.shtml