The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Help with awk funcions
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Help with awk funcions
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-19-2008
Annihilannic
™
Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
Why don't you just change the condition where it stops, i.e. when you hit the "doal" line?
Code:
while (getline && $1 != "doal") {
If you need to do any processing of the "doal" line contents you can just do it after the while loop.
Annihilannic
View Public Profile
Visit Annihilannic's homepage!
Find all posts by Annihilannic
Find Annihilannic's past nominations received
Find Annihilannic's present nominations given