* Craig Dickson ([EMAIL PROTECTED]) [020305 16:13]:
> When searching only a single directory, without its subdirectories, you
> probably don't really need find; it would do as well in most cases just
> to redirect grep's stderr to /dev/null, like this:
>
>grep "pattern to seach for" files 2>/d
justin cunningham wrote:
...
I've been reading a linux security book and I believe I recall it saying
I'd need to specify an 'unmask' (not sure the spelling here) and
subtract bits from 777 to lock down the user's access but that books at
home :(
There are many ways of doing things in Linux (as
Michael Jinks wrote:
[snip]
> find /path/to/cgi-bin -type f -exec grep '10.0.0.1' {} \;
If I were doing it this way I would use:
find /path/to/cgi-bin -type f -exec grep -H '10.0.0.1' {} \;
or
find /path/to/cgi-bin -type f -exec grep '10.0.0.1' {} \; -print
so you know which files the matches
On Tuesday 05 March 2002 03:52 pm, justin cunningham wrote:
> I want to search for the 10.ip in the files from
> the site's root directory.
cd to the root directory and type:
grep -r 'your grep search term here' ./*
the '-r' flag tells grep to search directories recursively.
--kurt
On Tue, Mar 05, 2002 at 12:52:44PM -0800, justin cunningham wrote:
> Hi, I read through man on find and grep and am trying to search for an
> ip in some files contained in folders but every time I type in grep
> options it just hangs. What am I doing wrong?
>
> Conversely i can go into /site.com/
27; (not sure the spelling here) and
subtract bits from 777 to lock down the user's access but that books at
home :(
justin
-Original Message-
From: Michael Jinks [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 2:34 PM
To: [EMAIL PROTECTED]
Cc: debian-user@lists.debian.org
"justin cunningham" <[EMAIL PROTECTED]> writes:
> Hi, I read through man on find and grep and am trying to search for an
> ip in some files contained in folders but every time I type in grep
> options it just hangs. What am I doing wrong?
>
> Conversely i can go into /site.com/cgi-bin then cat a
begin justin cunningham quotation:
> Hi, I read through man on find and grep and am trying to search for an
> ip in some files contained in folders but every time I type in grep
> options it just hangs. What am I doing wrong?
Hard to be sure, since you haven't shown us the command line you're
Well since you don't show what command you actually typed, it's hard
to tell you what you did wrong. But this might give you what you're
looking for:
find /etc -type f | xargs grep -H '10\.'
where /etc is the root of whatever tree you want, obviously, and
"-type f" tells find to only lis
On Tue, Mar 05, 2002 at 12:52:44PM -0800, justin cunningham wrote:
> Hi, I read through man on find and grep and am trying to search for an
> ip in some files contained in folders but every time I type in grep
> options it just hangs. What am I doing wrong?
We don't know unless you show us the pr
Hi, I read through man on find and grep and am trying to search for an
ip in some files contained in folders but every time I type in grep
options it just hangs. What am I doing wrong?
Conversely i can go into /site.com/cgi-bin then cat any.cgi | grep
10.0.0.1
and will get the desired result bu
11 matches
Mail list logo