| General Databases (71) Linux (42) Apache (10) Network (11) shell (12) Outside the Cube (2108) Programming (730) Web publishing (118) Windows (355)
|
Save a text file in Unix dos style or unix style
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:
|