Re: MSDOS files...what to do...
Andrew Akins wrote:
> I have copied some MSDOS text files (documents, java source files) to my
> Linux box. So, of course, they all have ^M at the end of each line. At
> our SCO box at work, we have a dos2unix command that would fix
> these...does Linux have a similar tool, and what package is it in?
You can pipe the file through "tr -d '\r'". Ignore the other message
about mcopy. This is restrictive since it *assumes* that the file
is on a floppy disk (or other FAT volume).
Jens B. Jorgensen
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .
- From: Gertjan Klein <firstname.lastname@example.org>