While working on the photos section of trigonakis.com, I wanted to batch rename some photos, so after the renaming their new name would be prefix_i, where i is a incremental value. The following (stupidly) simple bash script provides the desired functionality: #!/bin/bash INDEX=1 for i in *.$1; do echo item $INDEX: "$i" renamed to [...]
↧