[Lazarus] target filename extension
Micha Nelissen
micha at neli.hopto.org
Wed May 21 22:28:08 CEST 2008
Graeme Geldenhuys 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 {} \;
Escape the '{}':
... rm \{\} \;
Remove the -name; don't know what that should do.
Perhaps wise to use 'echo' first, to see what you're going to delete ;-).
Micha
More information about the Lazarus
mailing list