I have a file where I want to read starting at line number 426 and ending at 2372. Within those lines I want to replace , ,
with a new line character and output this to a new file.
I have tried the following:
sed -n '426,2372p' input.txt > $tmpSrcFile
which works grabbing that section and outputting it but when I add the replace I can't get it to work:
sed -n '426,2372ps/:, ,:/\n/g' input.txt > $tmpSrcFile
sed -n '426,2372{s/:, ,:/\n/gp}' input.txt > $tmpSrcFile