Aug 10, 2004 #1 ranjit Technical User Apr 14, 2000 131 GB Is there a quick sed/awk approach to remove the new line character in a file replacing it with a space? Example input file: a b c Desired results: a b c The tr commands appear to work with: tr "\012" " " <input_file.txt
Is there a quick sed/awk approach to remove the new line character in a file replacing it with a space? Example input file: a b c Desired results: a b c The tr commands appear to work with: tr "\012" " " <input_file.txt
Aug 10, 2004 #2 vgersh99 Programmer Jul 27, 2000 2,146 US nawk -v ORS=" " '1' myFile.txt vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
nawk -v ORS=" " '1' myFile.txt vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+