Thursday, 28 March 2013

Removing '\par' from text file, on Linux

You've just transferred a text file from Windows to Linux or HP, just to realize it has some strange characters inside. Most of the time, "dos2ux" will do the job, but not in this case. The '\par' is originating from an enriched text file on Windows.
In this case, sed Unix utility is coming to the rescue:



sed 's#\\par$##' My_Windows_file.txt

For more details, you may visit the link below:






No comments:

Post a Comment