yan
02-26-03, 16:54
| How to use end of line character(\n) as delimiter in sed or awk? or anyway can solve my problem by using boron shell scripts. e.g. myfile contains the following message hello world1 hello world2 I want to append the second line to the first line. I tried the following ways: nawk 'BEGIN{FS="\n"} END{print $0}' myfile and sed -n 's/\\\n//g' myfile They all didn't work! sign.... Can anyone help me to figure out the problems? |