For a single file, you can do the change of EOL using notepad++.
Reference: http://psrdotcom.blogspot.in/2017/01/change-eol-end-of-line-character-from.html
But it would be difficult, if you want to do for multiple files in one go.
I have found a solution to update EOL for all files in the current directory.
Pre-requisite
Make sure that, working directory contains only the files which you want to change EOL.Note: If not, copy the files to a new directory and change the EOL for all the files in that directory.
Procedure
- Download dos2unix utility from sourceforge https://sourceforge.net/projects/dos2unix/
- Extract the zip file
- Tip: Make sure that the extracted path doesn't contain spaces.
- Keep the bin directory available in your PATH environment variables
- Download the customized batch file from GIST https://gist.github.com/psrdotcom/d73ff9590c3010253b5b2a886704b26b
- Extract if needed, and place the "dos2unixfolder.bat" in the same directory where the "dos2unix" is placed.
- Tip: If you place the batch file in the same folder of dos2unix.exe. You no need to add again the patch of batch file in environment PATH.
- Navigate to your folder, where you want all the files EOL to be changed
- Press "Right Click on Mouse" in empty area
- Select "Open Command Prompt Here"
- Type the batch file name "dos2unixfolder.bat"
- You will able to see the conversion process
- Once the conversion is completed, you can check the EOL coversion in notepad++.
- If you need to help in checking, refer to http://psrdotcom.blogspot.in/2017/01/change-eol-end-of-line-character-from.html
Please send your comments and feedback to psrdotcom@gmail.com
No comments:
Post a Comment