Hi All,
Can you please help me interpret the following command. Which I am not able to understand. Also can you please illustrate what it is used for.
perl -pi -e 's/\015//g' text_file.dat
Regards
Hi All,
Can you please help me interpret the following command. Which I am not able to understand. Also can you please illustrate what it is used for.
perl -pi -e 's/\015//g' text_file.dat
Regards
Deleting mac "newlines" from the file.
mac "newlines' in the sense that newlines from an MAC OS.
But the file is sent and received in Unix only..
So I assume that '\' is the escape character and 015 is the new line that we are replacing with nothing here..
Is it right..?
Correct !