| General Databases (73) Linux (41) Apache (6) Network (11) shell (12) Outside the Cube (4640) Programming (679) Web publishing (65) Windows (431)
|
Save a text file in Unix dos style or unix style
(1 votes). Leave comments and/ or rate it.
Question: I've got a DOS style text file on my Linux box, when I open it in vi and save it, vi reports 'saved (dos)'. How can I make vi save it in unix style?Answer: VI automatically detects the format of a text file (DOS, Unix, Mac) and it tells that at the command line. To change the format use the :set fileformat=
Comments:
| ||||||||||||||||||||||||||||