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

Answer:

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

Be the first to comment

Leave a Reply

Your email address will not be published.


*