I want to basically find and replace "\n y" with " y" to import to excel easily using sed, tr, awk, perl or something.
Found out the way to accomplish this task is different in FreeBSD from Linux
sed ':a;N;$!ba;s/\n y/ y/g' tmp G1-15 y G1-16 G1-17 y
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n y/ y/g' tmp G1-15 y G1-16 G1-17 yhttp://stackoverflow.com/questions/9983646/sed-substitute-recursively
under the 'green checkmark' solution: Due to BSD Sed's quirkiness the embedded newlines are required. If you're using GNU Sed you may be able to get away with