Mattias Gaertner wrote:
> 
> Here is a one liner:
> find my-Linux-programming-folder -name '' -type f -perm /111 -regex
> '[^.]+' -exec rm {} \;


Just to recap. Your -regex part did not work on my Ubuntu Linux system.

I had to change:

   find . -type f -perm /111 -regex '[^.]+' -print

... to ....

   find . -type f -perm /111 \( ! -regex '.*/\..*' \) -print

Now it finds all executables excluding and hidden directories and files 
in the results. Even excluding non-hidden files in hidden directories 
(which is what I want).


Regards,
   - Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/


_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to