[Lazarus] target filename extension
Graeme Geldenhuys
graemeg.lists at gmail.com
Fri May 23 10:35:05 CEST 2008
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/
More information about the Lazarus
mailing list