I like that little script as well , but....
Would it be possible to make it so , the output would start with (for example) "Tabby-0001.jpg" instead of "Tabby-1.jpg"?
I mean : Right now , doing an "ls" shows me something like : Tabby-1.jpg , Tabby-10.jpg , Tabby-100.jpg , Tabby-101.jpg , Tabby-102.jpg , etc...
Then it does the same with "2" , resulting in : Tabby-199.jpg , Tabby-2.jpg , Tabby-20.jpg , Tabby-200.jpg , Tabby-201.jpg , etc
In a strictly CLI , this wouldn't be much of an issue , but when you're browsing such a dir by means of a graphical app (Like Rox-filer or Konqueror) any series you have aren't properly lined up.
I can't script my ass out of a wet paper bag myself , but shouldn't there be a part in that script that creates some kind of place-holders , based on the number of files , counted in the first part?
I mean : The script counts the number of files and the result is somewhere in the three digits.
Placeholders for three-digit numbers are included/created and then the renaming of the files utilises these placeholders , so the output would be like:
Code:
Tabby-001.jpg
Tabby-002.jpg
Tabby-003.jpg
Tabby-004.jpg
Tabby-005.jpg
.
.
.
Tabby-010.jpg
Tabby-011.jpg
Tabby-012.jpg
Tabby-013.jpg
Tabby-014.jpg
...etc
Anyone up for it?