Feb 13, 2001 #1 Currando ISP Joined Feb 13, 2001 Messages 25 Location 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 Joined May 4, 2000 Messages 142 Location 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 Joined Jun 18, 1999 Messages 31 Location 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