Re: find & exec for several regexp patterns together
pk wrote:
> pk wrote:
>
>> find \( -name "*.aix" -o -name "*.sun*" -o "*.solaris*" \) -exec rm {} \;
>
> Sorry, should have been
>
> find \( -name "*.aix" -o -name "*.sun" -o name "*.solaris" \) -exec rm {}
> \;
>8-(
find \( -name "*.aix" -o -name "*.sun*" -o name "*.solaris*" \) -exec rm {}
\;
--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.
|