Re: [SLE] grep

From: Brett Russ (icycle_at_charter.net)
Date: 02/29/04

  • Next message: Brett Russ: "Re: [SLE] grep"
    Date: Sat, 28 Feb 2004 20:53:02 -0500
    To: suse-linux-e@suse.com
    
    

    N1UAN Bob wrote:
    > 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

    find / -type f -iname '????\.??' | xargs grep -i 'word'

    will do a case insensitive file match for all files with 4 chars
    followed by a literal '.' followed by 2 chars then do a case insensitive
    search for 'word' on those files.

    HTH,
    BR

    -- 
    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: Brett Russ: "Re: [SLE] grep"

    Relevant Pages

    • Re: unix filename restriction
      ... underscore _ and the dot. ... You could use other characters, ... never met a *human* defined path of more than 80 chars (most of the ... If you want to be very sure, limit your filename to the DOS limit of 8 ...
      (comp.os.linux.development.apps)
    • Re: Random filenames
      ... > extension must remain the same for each filename returned. ... naming must follow the most stringent rules of all of them. ... than 8 chars. ... to draw the characters. ...
      (comp.lang.pascal.misc)
    • Re: CAsyncSocket and Send
      ... Vinoj wrote: ... I send two files in a row and the data format ... //256 chars - defined on both sides ...
      (microsoft.public.vc.mfc)
    • Re: regular expression question
      ... match lines that do not contain the chars "sync". ... you would negate the test: ... but that won't work as an option for grep. ... the word "sync". ...
      (comp.lang.perl.misc)
    • RE: Looking For mp3 ID Tag Module
      ... so it could have non-ASCII chars in it. ... How are you getting the filename? ... try passing the path name as a unicode string: ... anti-virus service working around the clock, around the globe, visit: ...
      (comp.lang.python)