it depends on how the line is terminated.
you can look at it with cat -A <file>
unix text will end with $
dos text will end with ^M$
tr '\012\015' '' < filenamefrom > filenameto
will remove carriage return newline from a dos text file
edit: i think that should have been
tr -d '\012\015' < filenamefrom > filenameto
Last edited by whansard; 05-26-2004 at 03:40 AM.