So If you type something in Linux and open in Window or vice versa then your line will not break properly.
However you can easily convert between them. You can either use powerful sed or with a simple program tofrodos.
To convert Linux line break to Windows type:
unix2dos filename.txt
To convert Windows line break to Linux type:Use -b option if you want to backup the file before changes are made.
dos2unix filename.txt
Use it with find command to perform changes in multiple files.
No comments:
Post a Comment