[Lazarus] target filename extension

Mattias Gaertner nc-gaertnma at netcologne.de
Thu May 22 10:27:40 CEST 2008


On Wed, 21 May 2008 14:24:18 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> Mattias Gaertner wrote:
> >> I'm getting annoyed not being able to easily search and delete any 
> >> executables in my Linux programming folders.
> > 
> > Here is a one liner:
> > find my-Linux-programming-folder -name '' -type f -perm /111 -regex
> > '[^.]+' -exec rm {} \;
> 
> I tried the following, and it didn't delete any of my executables.
> With or without file extensions.
> 
> find UnitTests -name '' -type f -perm /111 -regex '[^.]+' -exec rm {}
> \;

Sorry. Remove the -name ''. It was a copy/paste bug.

 
> 'UnitTests' is the folder I'm interested in and it contains sub
> folders with sub projects.
> 
> I'm running Linux (Ubuntu 7.10).

Mattias



More information about the Lazarus mailing list