If I run the command cat file | grep pattern, I get many lines of output. How do you concatenate all lines into one line, effectively replacing each \"\\n
cat file | grep pattern
\"\\n
On red hat linux I just use echo :
echo $(cat /some/file/name)
This gives me all records of a file on just one line.