bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on the find command on Linux


From: JFLecocq
Subject: Question on the find command on Linux
Date: Thu, 20 Nov 2003 10:32:07 +0100

Hi,

Is it  possible , with the find command on linux, to avoid the recursively
directory hierarchy ?

So, i would, for example, remove the file "*.bat" in a directory , but not
in the recursive directory

My structure directory is :
/my_dir/
/my_dir/recurse_dir/

this command works, but all the sub directorys are concerned
=> find /my_dir  -name "*.bat"  -exec rm {} \;

How to do ?

Thank you






reply via email to

[Prev in Thread] Current Thread [Next in Thread]