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.
1234,5678,fasfasasfsadf
abc
changes to
1234,5678,fasfasasfsadfabc
I have thought of using tr but I cannot make it use only the 1234 matches.
Welcome to forum, kindly use code tags for commands/codes/Inputs you are using in your posts, following may help you in same.
Let's say we have following input file then:
This is an excellent idea as long as the file being processed is not a symbolic link, there are no other directory entries hard-linked to it, and you don't mind losing the some or all of your data if you run out of space on the filesystem or the awk script fails for some reason.