[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep
From: |
Bob Proulx |
Subject: |
Re: grep |
Date: |
Sat, 4 Oct 2008 17:47:58 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Jérôme Arfouche wrote:
> i'm not sure this is a real bug (maybe i'm just using it wrong) but grep -c
> and grep -d skip don't seem to be working together, it looks like -c
> overwrites -d and searches directories anyway...
Thanks for the report. But I cannot recreate the problem that you
report. Could you provide an example? Something small that
illustrates the problem. I tried this:
mkdir t && cd t
mkdir a b c
echo foo1 > a/one
echo foo2 > b/two
echo foo3 > c/three
echo foo4 > four
grep -c -d recurse foo ./*
./a/one:1
./b/two:1
./c/three:1
./four:1
grep -d skip -c foo ./*
./four:1
grep -c -d skip foo ./*
./four:1
Looks okay to me. What version of grep are you running?
grep --version
Bob
- grep, Jérôme Arfouche, 2008/10/04
- Re: grep,
Bob Proulx <=
- Re: grep, Jérôme Arfouche, 2008/10/06