These multiple choice questions address the "Finding Things" section in the Unix Shell lesson.
Which command would you use to find a string in any Python file on the file system?
find
, but without grep
.find
and grep
.grep -r
, but without find
.grep -r --include
, but without find
.Which command would you use to find text files mentioned in text files?
find . -name "*.txt" | grep .txt
grep -r .txt
grep .txt $(find . -name "*.txt")
grep -w .txt $(find . -name "*.txt")
grep
interacts with
the pipe throughput. This answer greps the output of find
as if
it is one file.grep
arguments modify
the search query.