I'm running the following bash command:
find . \( -iname '*.aif' -o -iname '*.pdf' -o -iname '*.exe' -o -iname '*.mov' \
-o -iname '*.doc' \) -exec rm -f {} \;
I'm running the same parameters in another call to find
later on in the script. Is there any way to store the \( -iname '*.aif' -o -iname '*.pdf' -o -iname '*.exe' \
-o -iname '*.mov' -o -iname '*.doc' \)
part in a variable?
\(
,-iname
,'*.aif'
,-o
,-iname
, ...? I've just never seen an array definition like that. – Matt Alexander Jan 27 '11 at 20:35