how to do grep command on the contents of a text file code example Example: linux search for line in file grep -R "keyword" /directory/