Comment Comment by IronBacon Zsh one liner (probably works in Bash too): for a in {0001..0500}; do [[ ! -f ${a}_A.csv ]] && echo $((10#${a})); done The only trick I'm using is base transformation to remove padding in the echo... parent IronBacon 7 years ago