bash: Using param in find function filling an array
I am searching for files via a script. To work with the result, find is
filling an array with the results. I am traying it this way
RANGE=$1
arr=( $(find /net/nas3/mediadata/xmlprodpictures/tui ! -iname "* *"
-iregex '.*/big/[${RANGE}]/.*\(jpg\|gif\|png\|jpeg\)' -type f | sort) )
it is not working, while it does if i am setting the params directly in
the line.
A problem of correct escaping?
THX in advance
No comments:
Post a Comment