UNIX Interview Questions

Write a command to print the lines that has the the pattern “july” in all the files in a particular directory?

grepjuly *
This will print all the lines in all files that contain the word “july” along with the file name. If any of the files contain words like “JULY” or “July”, the above command would not print those lines.

Leave a Reply