Suppose you are working on a very old unix server where dos2unix, perl, tr, and sed are not present. How can you convert files from dos to unix format?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
||||
| show 2 more comments |
|
I think you are referring to removing the caret-M at the end of lines. You can use search and replace in vi to do this. In vi I normally do: (where "^" represents CTRL):
Which shows on the screen as:
|
|||||||||||
|
|
A server without
where |
|||
|
|
trandsed?sedis old........ iirc, – xenoterracide♦ Nov 7 '10 at 23:25exoredbe available on a system like that? I would'nt call it unix if there is notrorsed. – MattBianco Mar 31 '11 at 6:52sed? Really!? Out of interest, what is the system? As Gilles and MattBianco point out, it would probably still haveedat least. – Mikel Mar 31 '11 at 21:03