listing all the 4 letter words from the file in ubuntu using grep command code example Example: linux search for line in file grep -R "keyword" /directory/