Tag Info

Hot answers tagged


Since the number of files can be "unlimited", there is a builtin limit to the size of the command line. See http://stackoverflow.com/questions/19354870/bash-command-line-and-input-limit . Therefore, I would use find to solve this. E.g, in bash: cd /path/to/directory n=1 find . -maxdepth 1 -type f -name "*.jpeg.jpg" | sort | while read file; do mv ...

Only top voted, non community-wiki answers of a minimum length are eligible