Re: Question about Sun JAVAC
blmblm_at_myrealbox.com
Date: 09/02/04
- Next message: Michael N. Christoff: "Re: c++ becoming outdated? c# the next 'in' thing?"
- Previous message: rossum: "Re: BNF grammar"
- In reply to: Michael Wojcik: "Re: Question about Sun JAVAC"
- Next in thread: Edward G. Nilges: "Re: Question about Sun JAVAC"
- Reply: Edward G. Nilges: "Re: Question about Sun JAVAC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Sep 2004 02:43:31 GMT
In article <ch4n5o01hr5@news4.newsguy.com>,
Michael Wojcik <mwojcik@newsguy.com> wrote:
>
>In article <2pejgeFjspnuU1@uni-berlin.de>, blmblm@myrealbox.com writes:
>> In article <874qmnm176.fsf@benpfaff.org>,
>> Ben Pfaff <blp@cs.stanford.edu> wrote:
>> >blmblm@myrealbox.com writes:
>> >
>> >> In article <f5dda427.0408271754.69403c35@posting.google.com>,
>> >> Edward G. Nilges <spinoza1111@yahoo.com> wrote:
>> >>
>> >>>Does linux in fact enable me to search my entire hard disk let us say
>> >>>for a files that contain foo OR are larger than 1M while containing
>> >>>boo?
>> >>
>> >> As you may remember, "grep" can identify files containing specified
>> >> text, and "find" can identify files over a particular size.
>> >
>> >And find can use grep:
>> > find . \( \( -exec grep -q foo '{}' \; \) -o \( -size +10k -a
>> >-exec grep -q boo '{}' \; \) \) -print
>>
>> You're good. :-) I figured there was a way to do this but didn't
>> quite feel up to figuring it out. Think I'll save this for future
>> reference.
>
>Check that it matches your requirements first. Ben's thrown together
>a tidy find command there, but I'd make a few changes:
[ snip ]
You're good too! I don't often find myself wanting to search starting
at "/" (more typically I want to search in my home directory),
but the suggestion to limit the search to real files using "-type f"
and/or "-fstype" and/or "-mount" is to the point. As you say, this is
otherwise sort of a problem. "-mount" would also be useful in excluding
NFS-mounted filesystems from a search, which in my environment is
a concern.
"find" is really a very Unix-y sort of command, no? powerful and
flexible but not novice-friendly .... "Not that there's anything
wrong with that"?
-- | B. L. Massingill | ObDisclaimer: I don't speak for my employers; they return the favor.
- Next message: Michael N. Christoff: "Re: c++ becoming outdated? c# the next 'in' thing?"
- Previous message: rossum: "Re: BNF grammar"
- In reply to: Michael Wojcik: "Re: Question about Sun JAVAC"
- Next in thread: Edward G. Nilges: "Re: Question about Sun JAVAC"
- Reply: Edward G. Nilges: "Re: Question about Sun JAVAC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|