i find and select file for extension.
i have the code
Code: Select all
declare -a finales
finales[1]=".docx"
finales[2]=".sxw"
finales[3]=".sxc"
finales[4]=".odt"
for NUM in {1..4}; do
find /Z_SECCION/1 -maxdepth 1 -type f -name ${finales[$NUM]}
#find /Z_SECCION/1 -maxdepth 1 -type f -name ${finales[NUM]}
## echo ${finales[$NUM]}
# echo ${finales[NUM]}
done
How to use find with variables as parameters
thanks!