[Top][All Lists]

[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


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 :

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]