Sometimes, when passing the name of files from a config.txt into a pipe, I get weird problems of non-existing files. I fear it is due to some non-standard end of line characters. I am using kate as standard IDE, the end of line should simply be \n.
How can I remove the unwanted characters and assure that each line terminates with \n using bash?
Thank you
\r
or\n
, it's not an end-of-line character any more thanX
or4
is an end-of-line character. – Andrew Henle Dec 22 '20 at 11:20od -c your_file
– Bodo Dec 22 '20 at 11:33^M
and how do I get rid of it?. Chances are your question turned out to be a duplicate of the latter. – fra-san Dec 22 '20 at 11:48