Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk printf - exclusions

Status
Not open for further replies.

ken333

Technical User
May 15, 2002
1
GB
I am trying to modify some code which has the following print command:

for (i=1; i<NF; i++)
printf(&quot;%$%S&quot;,$i,i==NF?ORS:OFS)

I think this is printing all lines from a file but I want to exclude certain lines (which all begin with the same group number) from the printing.

Any help would be much appreciated.
 
give us something more to go on, PLS!
A sample file, pls

vlad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top