awk 'BEGIN { RS="\n\n"; FS="\n"; ORS="||"; } { print $1, $2; }' rs.txt beyes groad.net||admin baidu.com||tony sina.com.cn||linus kernel.org||