On 6/8/23, Greg Wooledge <g...@wooledge.org> wrote: > Yes. Use an array. > kate "${_KSX_AR[@]}" &
I tried the same kind of magic with find, but it didn't work. I don't want to have to have to hard code the statement into find. Any way to work around this?: _DIR_BRNX="/media/user/60320G593EB7250F" _X_SUB_DIRS_AR=( "${_DIR_BRNX}/org/archive" "${_DIR_BRNX}/com/pdffiles" ) _X_SUB_DIRS_AR_L=${#_X_SUB_DIRS_AR[@]} echo "// __ \$_X_SUB_DIRS_AR_L: |${_X_SUB_DIRS_AR_L}|" ### _DT=$(date +%Y%m%d%H%M%S) _SFX=$(basename ${_DIR_BRNX}) _ERR_LOG="${_SFX}_${_DT}_errors.log" _TM_LOG="${_SFX}_${_DT}_tm.log" _TMPFL="${_SFX}_$(mktemp "${_DT}".XXXXXX)_temp.ls" echo "// __ \$_TMPFL: |${_TMPFL}|" time ( find "${_DIR_BRNX}" -path "${_X_SUB_DIRS_AR[@]}" -prune -type f -printf '%s|%d|%P|' -exec file --brief {} \; 1> "${_TMPFL}" 2> "${_ERR_LOG}" ) > "${_TM_LOG}" 2>&1