home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!cxk6819
- From: cxk6819@hertz.njit.edu (K. Chandrakanth)
- Newsgroups: comp.unix.questions
- Subject: problem with vi..
- Message-ID: <1992Aug17.155121.21926@njitgw.njit.edu>
- Date: 17 Aug 92 15:51:21 GMT
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 34
- Originator: cxk6819@hertz.njit.edu
- Nntp-Posting-Host: hertz.njit.edu
-
- 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.
-
- struct employee {^M
- e_type typer;^M
- employee *next;^M
- char name[20];^M
- short department;^M
- };^M
- ^M
- struct manager:employee {^M
- employee* group;^M
- short level;^M
- };^M
- void print_emp(employee *);^M
- void f(employee *);^M
- void print_emp(employee *e)^M
- {^M
-
- Please email to me. Thanks in advance...
-
- cxk6819@hertz.njit.edu
-
- --
- god's theorem:
- those who sow in tears will reap in joy.
-