Feb 13, 2001 #1 Currando ISP Feb 13, 2001 25 ES Hi, How can I make a program in awk that print the lines until found white line. Thanks
Feb 13, 2001 #2 flogrr Programmer May 4, 2000 142 US Currando- awk '{print}{if($0~/^$/) exit}' file > outfile Hope this helps. flogrr flogr@yahoo.com Upvote 0 Downvote
Mar 6, 2001 #3 derekludwig Programmer Jun 18, 1999 31 US A bit simplier: /^$/ { exit; } { print; } Of is your want the empty line: { print; } /^$/ { exit; } -- Derek Derek Ludwig derek@ludwig.com Upvote 0 Downvote
A bit simplier: /^$/ { exit; } { print; } Of is your want the empty line: { print; } /^$/ { exit; } -- Derek Derek Ludwig derek@ludwig.com