On 5/19/15, Meshach A <a.mesh...@gmail.com> wrote: > Hi Baskar, hope this awk will help you.. > > awk '{if($1 ~ /^[0-9]../){print "\n"; printf $0}else{printf $0}}' a1a > > or > > awk '{if($1 ~ /^[0-9][0-9][0-9][0-9][0-9]/){print "\n"; printf > $0}else{printf $0}}' a1a
Thanks. Works perfectly. Is there anyway to remove Control characters in the file using 'awk'. S. Baskar _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines