I use awk to select, filter, and add...
1: Select all lines with columns greater than 12..
awk '{ if (NF > 12) print}'
2: From these lines print only lines that have the proper "mm/dd/yy"..
awk '$7== "'mm/dd/yy'" {print}'
3: Ok... now from the line that fall out from this I only want lines with server name...
awk '$7== "'Server_name'" {print}'
How would I include all these awk statements into one?
Thanks...
Joe Despres
1: Select all lines with columns greater than 12..
awk '{ if (NF > 12) print}'
2: From these lines print only lines that have the proper "mm/dd/yy"..
awk '$7== "'mm/dd/yy'" {print}'
3: Ok... now from the line that fall out from this I only want lines with server name...
awk '$7== "'Server_name'" {print}'
How would I include all these awk statements into one?
Thanks...
Joe Despres