Friday, June 26, 2009

Unix command to grep subfolders

Here is a Unix command which will be useful for many folks scratching their head to search something in sub folders

find . -name *.doc -exec egrep {} \;

Example:
$ find . -name *.doc -exec egrep Administrator {} \;
Binary file ./Desktop/interview_experience.doc matches
Binary file ./Desktop/Resume.doc matches

Hope this helps!

21 comments:

  1. An operating system is the most important software that runs on a computer(UNIX Training in Chennai). It manages the computer's memory, processes, and all of its software and hardware. Using a highly secured and effective operating systems are always wanted by the consumers(Unix Shell Scripting Training in Chennai). You hae said that crystal clear in your content above. Thanks for sharing this in here.
    UNIX Training in Chennai | UNIX Certification

    ReplyDelete
  2. Very good explanation about grep commands.. It is very helpful

    Unix Shell Script Training by experts in Chennai

    ReplyDelete
  3. I am a regular reader of your blog and being students it is great to read that your responsibilities have not prevented you from continuing your study and other activities. Love
    python training in omr

    python training in annanagar | python training in chennai

    python training in marathahalli | python training in btm layout

    python training in rajaji nagar | python training in jayanagar

    ReplyDelete
  4. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies

    Selenium Training in Bangalore | Best Selenium Training in Bangalore

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    ReplyDelete
  5. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 

    python training in chennai
    python training in chennai
    python training in bangalore

    ReplyDelete
  6. All are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.
    Devops Training in Bangalore
    Best Devops Training in pune

    ReplyDelete
  7. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
    Data science course in bangalore | Data Science training with placement in Bangalore

    ReplyDelete
  8. Very nice post here and thanks for it .I always like and such a super contents of these post.
    Excellent and very cool idea and great content of different kinds of the valuable information's.

    Java training in Bangalore



    ReplyDelete
  9. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training


    ReplyDelete
  10. Some us know all relating to the compelling medium you present
    powerful steps on this blog and therefore strongly encourage
    contribution from other ones on this subject while our own child is
    truly discovering a great deal. Have fun with the remaining portion of
    the year.
    unix training in chennai
    Software training institute in chennai

    ReplyDelete