Re: grep with multiple and
- From: marc <marc.tessis@xxxxxxxxxxxx>
- Date: Wed, 11 Feb 2009 05:02:46 -0800 (PST)
On 11 fév, 10:47, marc <marc.tes...@xxxxxxxxxxxx> wrote:
On 10 fév, 18:24, Spiros Bousbouras <spi...@xxxxxxxxx> wrote:
On 10 Feb, 13:12, marc <marc.tes...@xxxxxxxxxxxx> wrote:
On 9 fév, 23:37, Spiros Bousbouras <spi...@xxxxxxxxx> wrote:
Could you cut and paste the exact command line
you used?
It's simply :
find ./ -name '*.*' -exec nawk -v x=1 -v y=1 '/-BRA/ {x = 0}; /FRA/ {y
= 0} END {exit x+y}' {} \; -print
Since the above wraps around and I get a strange character after
the = I will rewrite is as follows:
find ./ -name '*.*' -exec \
nawk -v x=1 -v y=1 \
'/-BRA/ {x = 0}; /FRA/ {y = 0} END {exit x+y}' \
So the above does not produce any output ?
With grep or awk, it scans a certain number of files (~170), then it
freezes, with any file (even empty)...
Thanks anyway.
I give up...- Masquer le texte des messages précédents -
Finally, I've found the problem : it hangs when there are pipes or
files beginning with "."
Thanks to all.
.
- Follow-Ups:
- Re: grep with multiple and
- From: pk
- Re: grep with multiple and
- References:
- grep with multiple and
- From: marc
- Re: grep with multiple and
- From: pk
- Re: grep with multiple and
- From: marc
- Re: grep with multiple and
- From: pk
- Re: grep with multiple and
- From: marc
- Re: grep with multiple and
- From: Stephane CHAZELAS
- Re: grep with multiple and
- From: marc
- Re: grep with multiple and
- From: Sven Mascheck
- Re: grep with multiple and
- From: marc
- Re: grep with multiple and
- From: Spiros Bousbouras
- Re: grep with multiple and
- From: marc
- Re: grep with multiple and
- From: Spiros Bousbouras
- Re: grep with multiple and
- From: marc
- grep with multiple and
- Prev by Date: Re: Today and yesterday
- Next by Date: Re: Sending alert emails from server
- Previous by thread: Re: grep with multiple and
- Next by thread: Re: grep with multiple and
- Index(es):
Relevant Pages
|