Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word ORANGE in the files.

Answer

Find./ -name*.c,v”|sed‘s/,v//g’|xargsgrep“ORANGE”

All linux Questions

Ask your interview questions on linux

Write Your comment or Questions if you want the answers on linux from linux Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---