Re: [SLE] grep

From: James Knott (james.knott_at_rogers.com)
Date: 02/29/04

  • Next message: C Hamel: "[SLE] ASX stream player?"
    Date: Sat, 28 Feb 2004 21:15:07 -0500
    To: suse-linux-e@suse.com
    
    

    N1UAN Bob wrote:
    > Hi
    > Wonder if someone could give me the way to grep for an word within all
    > files on my system like the filename would be XXXX.XX
    > seems no matter what i been trying i am just not doing it right
    > thanks in advance
    > Bob
    >
    >
    >

    You might try the following, from O'Reilly's "Unix Power Tools"

    find . -type f -print | xargs fgrep 'text' /dev/null

    Replace "text" with the word you're looking for. You might also want to
    replace the "." after find, with "/", to start from /, instead of the
    current directory.

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: C Hamel: "[SLE] ASX stream player?"

    Relevant Pages

    • Re: [SLE] suse 7.1
      ... On Sun, 2005-08-14 at 12:43 +0200, Per Jessen wrote: ... > N1UAN Bob wrote: ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
      (SuSE)
    • [SLE] grep
      ... Wonder if someone could give me the way to grep for an word within all ... files on my system like the filename would be XXXX.XX ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
      (SuSE)
    • Re: [SLE] Fing the file that consists of a specific word
      ... > What is the command for that job? ... > i feel that we have to use the grep 'specific word' and something more. ... Also check the archives at http://lists.suse.com ... Please read the FAQs: suse-linux-e-faq@suse.com ...
      (SuSE)