Path:
/ DIRECTORY_ROOT /SUB_DIRECTORYAnd convert that to:
/ directory_root /sub_directoryI tried: rename 'y/A-Z/a-z/' * but it only changes the root directory and not sub directories. I'm new to Ubuntu, thanks for the help!
1 Answer
find /path -depth -exec rename 'y/[A-Z]/[a-z]/' {} ";"Here is a simple directory structure:
$ mkdir -p A/B/C/D
$ tree
.
└── A └── B └── Cand after running rename using find:
$ find /path -depth -exec rename 'y/[A-Z]/[a-z]/' {} ";"
$ tree
.
└── a └── b └── c 2