Mmmmm, I'm doing my best at understanding all you wrote!
(I always marvel at how noob I am!!!)
Currently, the rename script acts like this:
- analyzes the file name from the end finding al numbers
- keeps first sequence of number after the extension: in 03_001 it keeps 001
- sorts files with that sequence
That's why it has problems if files have more than one name pattern.
In the first example (03_XXX and CreditsXX) it tries to sort files after adding the first column:
and that's why it places Credits10 after 03_010 and Credits11 after 03_011!!
I'm trying to reproduce windows' sort-by-name....but I'm not so good at shell scripting!
EDIT: I could cut the file list in pieces based on the filename. Than sort every piece and join the results...just thinking...
Last edited by silver18; 06-22-2012 at 08:54 AM.