118k views
5 votes
You have a bunch of text files in your home directory, and you are trying to find which ones contain the name "Backman". You are not certain if the name is all lowercase, has only the first letter capitalized, or is all caps. What command would you type to search within all the files in your current working directory for the name "Backman", and ignore case?

1 Answer

1 vote

Answer:

grep -i backman *

Step-by-step explanation:

grep command is a unix command line utility that is use to search for plain text.

Running

grep -i backman *

command will bring back all occurrence of backman in the directory while ignoring the case whether it's upper or lower.

grep is the keyword

The -i means grep should ignore the case.

Then backman is the search word to find.

The wildcat (*) means all occurrence of backman should be returned.

User Vieux
by
3.1k points