AWK_Scripting_'If'_Statements


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting AWK_Scripting_'If'_Statements
# 8  
Old 07-02-2012
Quote:
Originally Posted by Irishboy24
Hi Elixir,

I understood this code but one question . what is the use of NF>1 and NF==1 here.
It is splitting on a - character and using NF (the number of fields in the record) to distinguish between formats (the one's that don't have a - will have only one field, those with a - will have more than one).

Regards,
Alister
This User Gave Thanks to alister For This Post:
# 9  
Old 07-02-2012
Thanks Alister..makes more sense to me now. cheers ..
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question