DWQA QuestionsCategory: LinuxWrite a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.
Editor Staff asked 9 months ago

Write a command that will look for files with an extension “c”, and has the occurrence of the string “apple” in it.

1 Answers
Editor Staff answered 9 months ago

Find ./ -name “*.c” | xargs grep –i “apple”