Skip to main content
added 77 characters in body
Source Link
Gilles Quénot
  • 36.8k
  • 7
  • 76
  • 97

I use a little script to numbering files. iI start it with a thunarthunar custom action. This only works when all files are in the same directory. the new files name are 00001.ext00001.ext to 00005.ext00005.ext when iI rename 5 files. krenamekrename has an option to restart for every folder. when

When i have this

/path/to/folder1/file1 /path/to/folder1/file2 /path/to/**folder2**folder2/file1 /path/to/**folder2**folder2/file2 

my script would create this

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/**folder1**folder1/00003 /path/to/**folder2**folder2/00004  ^ folder two 

what iWhat I want is

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/folder1/00003 /path/to/folder1/00004 ^ folder 1 

is there a command line tool that can rename the files and restart for every new folder?

I use a little script to numbering files. i start it with a thunar custom action. This only works when all files are in the same directory. the new files name are 00001.ext to 00005.ext when i rename 5 files. krename has an option to restart for every folder. when i have this

/path/to/folder1/file1 /path/to/folder1/file2 /path/to/**folder2**/file1 /path/to/**folder2**/file2 

my script would create this

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/**folder1**/00003 /path/to/**folder2**/00004 

what i want is

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/folder1/00003 /path/to/folder1/00004 

is there a command line tool that can rename the files and restart for every new folder?

I use a little script to numbering files. I start it with a thunar custom action. This only works when all files are in the same directory. the new files name are 00001.ext to 00005.ext when I rename 5 files. krename has an option to restart for every folder.

When i have this

/path/to/folder1/file1 /path/to/folder1/file2 /path/to/folder2/file1 /path/to/folder2/file2 

my script would create this

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/folder1/00003 /path/to/folder2/00004  ^ folder two 

What I want is

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/folder1/00003 /path/to/folder1/00004 ^ folder 1 

is there a command line tool that can rename the files and restart for every new folder?

Source Link
fmeier
  • 371
  • 1
  • 4
  • 11

Numbering files and restart for every folder in command line?

I use a little script to numbering files. i start it with a thunar custom action. This only works when all files are in the same directory. the new files name are 00001.ext to 00005.ext when i rename 5 files. krename has an option to restart for every folder. when i have this

/path/to/folder1/file1 /path/to/folder1/file2 /path/to/**folder2**/file1 /path/to/**folder2**/file2 

my script would create this

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/**folder1**/00003 /path/to/**folder2**/00004 

what i want is

/path/to/folder1/00001 /path/to/folder1/00002 /path/to/folder1/00003 /path/to/folder1/00004 

is there a command line tool that can rename the files and restart for every new folder?