![]() |
|
Recursive File Renaming - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Recursive File Renaming (/Thread-Recursive-File-Renaming) |
Recursive File Renaming - Chalant - 08-27-2013 I use this quite often for changing file extensions (rather than doing it one by one), as Linux is case-sensitive and some people don't keep consistent naming for assets some times, and it really started to get on my nerves. Red is the extension the files have, green is it what you want to change it to. Of course, this can be used for anything, not just file extensions. Quote:find . -name "*.DDS" -exec rename -v 's/\.DDS$/\.dds/i' {} RE: Recursive File Renaming - Exiled - 08-27-2013 This is actually pretty useful at times, thanks for the share, Chal. RE: Recursive File Renaming - Berzerk - 09-03-2013 Simple yet useful, this will help people out alot. RE: Recursive File Renaming - YellowKnife - 09-03-2013 Yea Thanks for this mate. YellowKnife RE: Recursive File Renaming - Chalant - 09-03-2013 No worries
|