Search for Tips & Tricks

Google
 

Monday, May 23, 2011

How to join Two lines into one

If you want to join two lines into one from a file use the below command.

awk '{printf $0;printf " "}NR % 3 ==0 {print " "}' filename