Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Remove new line for a particular place

$
0
0
Hello All,

I have a text file which gets uploaded to tables using shells script. However before running that script I need to alter it, like in the below I have to firstly find the word 1234 and remove the new line from end of it.

Code:

1234,5678,fasfasasfsadf
abc

changes to
Code:

1234,5678,fasfasasfsadfabc
I have thought of using tr but I cannot make it use only the 1234 matches.

Regards
Sandeep

Viewing all articles
Browse latest Browse all 16232

Trending Articles