Originally posted by RajRed
Where I can find dostounix program or command?
You mean a command that will edit a file and replace all the windows new-line sequence of characters (\r\n) with a unix new-line character (\n)
You should probably seach it as dos2unix, in google.
But I preffer the do-it-yourself solution:
TO remove all the \r characters from a file
you may use bash:
cat <dos_file> | tr -d "\r" > <unix_file>
or just open the file in vi and type:
to replace \r\n with \n
or use perl, something like:
perl -pe 's/\015\012/\n/g'
I think (not a perl fan)