vim - need to write a script to change file format from dos to unix -
I have to create a script using VIM which opens the file, set the file format = Unix, and then save the file And exit. Could you please help? Thank you
First of all, check whether you have P> This is an in-line dos2unix or Dos2ux command; It does this for you already. file format with : w command; Of course, you can call it -c "set ff = unix" . Notes
sed , pearl , ...; Vim is quite a huge option.
Comments
Post a Comment