On 2006-03-29, Florian Kulzer <[EMAIL PROTECTED]> wrote:
>> find . -maxdepth $DEPTH -name "$.log" -ok rm '{}' ';';
"$.log" was of course a type for "*.log".
>> so that it doesn't look in directories or subdirectories that start
>> with a "." -- any suggestions?
>
> You could try -regex instead o
Adam Funk wrote:
I want to modify the following command
find . -maxdepth $DEPTH -name "$.log" -ok rm '{}' ';';
so that it doesn't look in directories or subdirectories that start
with a "." -- any suggestions?
You could try -regex instead of -name, e.g.
find . -regex "\./[^.].*\.log"
lists
I want to modify the following command
find . -maxdepth $DEPTH -name "$.log" -ok rm '{}' ';';
so that it doesn't look in directories or subdirectories that start
with a "." -- any suggestions?
--
Thanks,
Adam
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Tro
3 matches
Mail list logo