I am trying to find out how to stream a file so that if gives me back how many times a certain field label occurred.
File example:
Cat black 100 home lost
Dog brown 632 street lost
Dog black 839 home owned
Pig pink 123 mud farm
Dog white 345 street lost
I would like to find out how many times does "Dog" appear in the file using the AWK command if possible or maybe even another command that is capable.