I am using cat to output 6 lines of text from a text file called wordlist.txt. I am piping it to egrep and want to find matches in a second file called 8compdic.txtcommand I am using is given below:cat wordlist.txt | egrep - 8compdic.txt | lessAm getting output which has all the lines in *compdic.txt
Using egrep to find matches in a file while piping output from a cat command
linux;grep