On Wed 19 Mar 2003 14:50:18 +(-0800), Vineet Kumar wrote:
[...]
> > find / ! -fstype nfs -type f | (etc.)
>
> Wouldn't it be better to make use of find's -prune, something like
>
> find / -fstype nfs -prune -o -type f -print0 | xargs -0 ...
>
> The xdev one should be fine though. (also, -mo
* Clive Standbridge <[EMAIL PROTECTED]> [20030319 14:27 PST]:
> By the way, recursively searching from / will search all files on any network file
> systems you have mounted, which can take ages. If this affects you, you could try
> something like
>
> find / -xdev -type f | xargs -r grep -H -e
On Wed 19 Mar 2003 13:04:59 +(-0500), Matt Price wrote:
[...]
> if I run emacs -nw, the error doesn't occur, so I asusme the issue is
> x-specific. Anyway, though people were sympathetic, no one seemed to
> have seen this specific problem before (if it's familiar, help would
> still be absolut
On Wed, Mar 19, 2003 at 01:04:59PM -0500, Matt Price wrote:
> if I run emacs -nw, the error doesn't occur, so I asusme the issue is
> x-specific. Anyway, though people were sympathetic, no one seemed to
> have seen this specific problem before (if it's familiar, help would
> still be absolutely we
hi everyone,
In an earlier threasd (which since moved on in a different direction)
I mentioned this error I've been getting when I try to run some
programs, most pressingly emacs:
>---
>[EMAIL PROTECTED]:~$ emacs .muttrc
>No fonts match `-*-*-medium-r-normal--14-*-*-*-c-*-iso8859-15'
>---
On Mon, Apr 08, 2002 at 11:31:41AM -0500, dman wrote:
> That's kinda tricky. Suppose you left the brackets out. ps would
> have given you lines with
>
...
Thank you dman and all the others.
Enjoy your day.
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Univers
On Mon, Apr 08, 2002 at 04:41:08PM +0200, Johann Spies wrote:
> In the grep's info page I find the following which works as said. But
> I want to know why. What does the [c] do in this case?
Simple: The regexp '[c]ron' matches the string 'cron', but not the
string '[c]ron'.
> --
On Mon, Apr 08, 2002 at 04:41:08PM +0200, Johann Spies wrote:
> In the grep's info page I find the following which works as said. But
> I want to know why. What does the [c] do in this case?
'[abc]' matches any of the characters a, b, and c. '[c]' matches exactly
a 'c', so '[c]ron' matches only
On Mon, Apr 08, 2002 at 04:41:08PM +0200, Johann Spies wrote:
| In the grep's info page I find the following which works as said. But
| I want to know why. What does the [c] do in this case?
|
|
| 7. Why do people use strange regular expressions on `ps' output?
|
|
Johann Spies <[EMAIL PROTECTED]> writes:
> In the grep's info page I find the following which works as said.
> But I want to know why. What does the [c] do in this case?
[...]
> ps -ef | grep '[c]ron'
It defines a character class containig a "c" as it's only member. The
expression "[cp]
Johann Spies <[EMAIL PROTECTED]> writes:
> In the grep's info page I find the following which works as said.
> But I want to know why. What does the [c] do in this case?
>
>
> 7. Why do people use strange regular expressions on `ps' output?
>
> ps -ef | grep
On Mon, Apr 08, 2002 at 04:41:08PM +0200, Johann Spies wrote:
> In the grep's info page I find the following which works as said. But
> I want to know why. What does the [c] do in this case?
It tells grep to find four character words that start with the letter
'c' and end with the three letters
The [c], I believe, is a character class containing only the letter c. If
you wanted to match "cron" or "tron" you could use '[ct]ron'.
In this case, the only effect is that the ps output for the grep process
won't match its own pattern, so you don't get the spurious item.
ap
---
In the grep's info page I find the following which works as said. But
I want to know why. What does the [c] do in this case?
7. Why do people use strange regular expressions on `ps' output?
ps -ef | grep '[c]ron'
If the pattern had been written without
* 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
25 matches
Mail list logo