

convert the newlines to spaces to get everything on one line convert the End Of File flags. Select this flag carefully I use EOF, you may need something else. But if for example hulk hogan got in the file first.txt and dolph ziggleris in second.txt the script must work, and not to get out of your body. for each file (which is found by find) echo the file name print the content print an End Of File flag (that should be different from what can be inside the files. I wish that it threw an exception if one of the keywords is not present in all files.

Ie, if in one file it will not find, at least one of the words, it will come out from the body of the script. But it's a whole two of these words in each file. If they do, the script will skip by saying that this line-that is, file this.

grep simple This will search in all the files in the current directories, but it wont enter the subdirectories. Let’s look at some really common examples. You can use it to search a file for a certain word or combination of words, or you can pipe the output of other Linux commands to grep, so grep can show you only the output that you need to see. The wild card actually substitutes with the name of all the files and directories in the current directory. Why do we use grep Grep is a command-line tool that Linux users use to search for strings of text. I am looking for hulk hogan,dolph ziggler in multiple files. To search for the word simple in all the files of the current directories, just use wild card ().
