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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk READY...

Status
Not open for further replies.

Saxer

Technical User
Jul 3, 2000
6
AR
Hi people

I have to check a script from someone and there is one line that I never seem before…

print -u3 "$(date +%c) - TransDelete Run Complete - $(awk '/READY/{print $3 " rows deleted"}' /tmp/TransDelete.tmp)"

I never use “awk ‘/READY/”
Anyone of you know what is the awk behavior using “READY” statement??
I am using HP-UX

Thanks in advance
Daniel
 
/READY/ matches any lines containing the text "READY". So that will print the third field of the matching line, followed by the words "rows deleted".

Annihilannic.
 
:) Thanks very much Annihilannic
was realy simple :)
Thanks
Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top