I have a series of files that always start with at least 5 numerical values like:
85966_88.jpg
Using this answer I learned to use the find and regextype in a command to delete files like this:
find . -regextype posix-extended -iregex './a_[0-9]{6}' -execdir bash -c '[[ ${1##./a_} > 000750 ]] && echo $1' "removing: " {} \;
I altered this command to suite my needs like this:
find . -regextype posix-extended -iregex './[0-9]{5}' -execdir bash -c '[[ ${1##./} > 000001 ]] && echo $1' "removing: " {} \;
I execute the command and it does not delete the files. I cannot figure out how to remove all .jpg that have numeric values in the first 5 digits and then _