* Robert Peirce; Fri, 5 Mar 2004 10:44:13 +0900

> On Mar 4, 2004, at 8:33 PM, nobu.nokada / softhome.net wrote:
> I ran 'cat hello | tr -d '\r' > tst8', made tst8 executable and it
> ran. 

Any to any conversion:

DOS -> UNIX: ruby -p -i.bak -e '$_.sub!(/\r$/,"")' file_name
DOS -> Mac:  ruby -n -i.bak -e 'print $_.chomp+"\r"'

UNIX -> DOS: ruby -p -i.bak -e '$_.sub!(/$/,"\r")' file_name
UNIX -> Mac: ruby -n -i.bak -e 'print $_.chomp+"\r"'

Mac -> UNIX: ruby -p -i.bak -e '$_.gsub!(/\r/,"\n")' file_name
Mac -> DOS:  ruby -p -i.bak -e '$_.gsub!(/\r/,"\r\n")'

Josef 'Jupp' Schugt