Help using variable in find rule

view story

http://www.unix.com – I'm not able to use a variable in my find rule. It's essentially being ignored. I'm trying to store a list of file types to ignore in a variable. This is the relevant code. Code: #!/bin/ksh EXCEPTIONS='-not -name "*.xom" -a -not -name "*.sh" -a -not -name "*.pl"' /usr/local/bin/find path/to/files $EXCEPTIONS > FileList.txt When I use the contents of the EXCEPTIONS variable directly, the find rule works. However the variable doesn't work at all? Is this even possible? (HowTos)