Given this menu:
ps1$cat menu.txt the menu steak burrito $11.95 pasta and shrimp $9.75 caesar salad $6.50 shrimp salad $9.99 alfredo shrimp $10
My Nix programmer does this:
awk -F$ '/shrimp/{if ($NF < 10){ print $1}}' menu.txt pasta and shrimp shrimp salad
awk rules!
if you are looking for meals under 10 bucks, as shown in ($NF < 10), why isn't caesar salad($6.50) in the output ?
($NF < 10)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Given this menu:
My Nix programmer does this:
awk rules!
if you are looking for meals under 10 bucks, as shown in
($NF < 10)
, why isn't caesar salad($6.50) in the output ?