Re: Question about Sun JAVAC

blmblm_at_myrealbox.com
Date: 09/02/04


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.


Relevant Pages

  • Re: Command line devenv not picking up dependencies on managed p
    ... commandline and it does not copy any of the C# reference assemblies to ... the build log shows that the xcopy command is incorrect. ... >> already been copied to the output folder by the manual compile. ...
    (microsoft.public.vsnet.ide)
  • Re: Why does this code work?
    ... This works because the command is a reference type. ... Dim connection As New SqlConnection ... Dim employees As New EmployeeCertificationCollection ...
    (microsoft.public.dotnet.general)
  • Re: In text authors list with numerical referencing style
    ... command, and it made its debut in "named.sty" back in 1992. ... I was suggesting the \citeauthor command from natbib. ... I've done it via custombib -- as I recall, you simply create an author-date style that is compatible with natbib, but instruct natbib in your preamble to use a numerical citation format. ... As I recall, biblatex has a \citeauthor command analogous to that of natbib (i.e., it will give you the authors' names without printing a reference label). ...
    (comp.text.tex)
  • Re: Need help with intercepting the "Add reference" command
    ... > I am starting the IDE, clicked the menu item for registering, open project ... > and click on Add reference the BeforeCommandExecute is NOT invoked. ... Below you have the code to register command events ...
    (microsoft.public.vsnet.ide)
  • RE: MS IIS 5 server is hacked leaving undeletable folders and files
    ... Usage assumes Rm.exe is either in the path, or the current folder: ... For example, to remove a file or folder named COM1, type the following command: ... I did find some reference to looking at the security tab for these ... This list is provided by the SecurityFocus ARIS analyzer service. ...
    (Incidents)