Search Results

Search: Posts Made By: JaapSchuurman
17,292
Posted By JaapSchuurman
Ahh :-) Thanks all !!! it works now.
Ahh :-)

Thanks all !!! it works now.
17,292
Posted By JaapSchuurman
Hi Bakunin and xbin, Thanks for the reply. ...
Hi Bakunin and xbin,

Thanks for the reply.

sed 's/\\n/,/'
does the job indeed :-)

I noticed it only removes one \n per line.
echo "TEST\nTEST2\nTEST3" | sed 's/\\n/,/'
TEST,TEST2\nTEST3...
17,292
Posted By JaapSchuurman
Removing \n from a text file
Hi All,

I have a question regarding text substitution.
I have a file that contains a lot of text.
Some of the text is separated with a \n like:

TEST\nTEST2\nTEST3
BLA\nBLA2\nBLA3

So there...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy