184k views
4 votes
Which command would you use in a script to parse out entries that contain the word "those" from a file named config in a folder named "diet" beneath the /etc directory?

1 Answer

1 vote
I would use the grep command on the path /etc/diet/config and pass in the word "those" as an argument in order to print out all the lines that have that word in them.
User Nate Norris
by
8.1k points