Question on the find command on Linux
[email protected] Thu, 20 Nov 2003 10:32:07 +0100
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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