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
jjorgens@bdsinc.com
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to:
- Follow-Ups:
- mtools
- From: Gertjan Klein <gklein@xs4all.nl>