Re: find and grep help
- From: Robert Binkley <leebinkley@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 13:16:23 -0700
thanks to Barry
Your script worked
--- Barry Finkel <b19141@xxxxxxxxxxxxxxxxxxxx> wrote:
Robert Binkley <leebinkley@xxxxxxxxx> wrote:----------------------------------------------------------------------
I am currently looking for a way to use find tosearch
a system and look for .rhosts and .netrc files but
exclude /home dir structure amd the /proc
could some one help.
I think this c-shell script will work; I have not
fully tested it.
I ran it as non-root on a Solaris 9 desktop, and I
found some files
and got a lot of "permission denied" messages.
------------
#!/bin/csh
foreach entry (`ls /`)
if (-d $entry) then
if (($entry != "home")&&($entry !=
"proc")) then
find /$entry -name .rhosts -print
find /$entry -name .netrc -print
endif
endif
end
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory Phone: +1
(630) 252-7277
9700 South Cass Avenue Facsimile:+1
(630) 252-4601
Building 222, Room D209 Internet:
BSFinkel@xxxxxxx
Argonne, IL 60439-4828 IBMMAIL:
I1004994
- References:
- Re: find and grep help
- From: Barry Finkel
- Re: find and grep help
- Prev by Date: Re: find and grep help
- Previous by thread: Re: find and grep help
- Index(es):
Relevant Pages
|
|