Closed tytskyi closed 9 years ago
your command syntax is wrong.. try this
$ renamer --replace 1 'aaa/**/*'
or
$ renamer --replace {{index}} 'aaa/**/*'
I'm not sure it is the thing that i need. So i just want to rename any file or folder recursively to one character (in my example was 1). Could you suggest me right syntax?
with this directory structure:
$ tree
.
├── aaa
│ └── one
├── bbb
│ └── two
└── ccc
└── three
this command:
$ renamer --replace 1 '*/*' -d
produces this dry run output:
Dry run
✔︎ aaa/one -> aaa/1
✔︎ bbb/two -> bbb/1
✔︎ ccc/three -> ccc/1
and when run without dry-run, it produces this directory structure:
$ tree
.
├── aaa
│ └── 1
├── bbb
│ └── 1
└── ccc
└── 1
Initial folders structure
I run
I got
I expected