The ASCII file “inventory” contains the following data:February 10 221 30
March 20 220 10
April 30 100 20
June 10 20 100
July 20 30 300How do you select all entries not having an uppercase “J” in the first field?
find the lines that either have a “30” or do contain an “y”.
>How do you select all entries not having an uppercase “J” in
>the first field?cat inventory | awk '!/^J/'
>find the lines that either have a “30” or do contain an
>“y”.cat inventory | awk '/y/ || /30/'