home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!mips!darwin.sura.net!haven.umd.edu!purdue!news.cs.indiana.edu!umn.edu!lynx!nmsu.edu!dante!jhall
- From: jhall@dante.nmsu.edu (HALL)
- Newsgroups: comp.unix.questions
- Subject: Re: problem with vi..
- Message-ID: <1992Aug19.051418.15684@nmsu.edu>
- Date: 19 Aug 92 05:14:18 GMT
- References: <1992Aug17.155121.21926@njitgw.njit.edu> <2195@fnnews.fnal.gov> <514@alden.UUCP>
- Sender: usenet@nmsu.edu
- Organization: New Mexico State University, Las Cruces, NM
- Lines: 31
-
- >|>|> Dear netters,
- >|>|> I have a sparc workstation 2.
- >|>|> I mounted the floppy drive and copied few files from the floppy. But
- >|>|> when I viewed through vi I happened to see ^M at the end of each line.
- >|>|> When I cat the file it looks normal. Will some one tell me the reason
- >|>|> for this. If possible please send me a shell script or small c program
- >|>|> to remove this. I am enclosing a sample of the file.
- >|>|>
- >|>|> But when I compile the file it works fine. The control characters
- >|>|> are really irritating. So help me.
- >|>|>
-
-
- { DEleted lots of stuff from people who make stuff really difficult }
-
-
- Since you have a sparc workstation I see that you use SunOS.
- Dos files do use a different carriage return than the sun.
- There is a built in little program to convert this for you....
-
- it is called.........
-
- dos2unix .....tada......
-
- and it goes the other way........unix2dos...
-
- there you go I hope it helps...
-
- ( I know it is there in 4.1.1 and 4.1.2 )
-
- jhall@nmsu.edu
-