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!

can anyone explain it

Status
Not open for further replies.

sangfroid1

IS-IT--Management
Sep 20, 2006
4
US
Hi ,
I came across one awk statement which is as below
awk -F: '$NF >= 1 { print; }' /etc/shadow

-F defines the field separator... but I am not getting what $NF mean ??
 
$NF is the last field's value.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
ohhh got ya...

just knew that NF is interpreted different from $NF.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top