linux search for phrase in file and print line code example Example: linux search for line in file grep -R "keyword" /directory/