In the awk, fields are access using special variable. For e.g. In above database $1, $2, $3, $4 respectively represents Sr.No, Product, Qty, Unit Price fields. (Don't confuse $1,$2 etc with command line arguments of shell script)
$0 is special variable of awk , which print entire record, you can verify this by issuing following awk command: $ awk '{ print $0 }' inven
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.