![]() |
Unix gurus, how do you batch rename multiple folders
Lets say I have them 001, 002, 003 .. etc.. How can I rename them 200,201,202 or just do 1-001, 1-002, 1-003
Anyone knows a command or script? |
i use total commander via ftp
|
I used this to rename extensions, should work on folders too:
http://lab.artlung.com/unix-batch-file-rename/ just replace the "00" part with "200" |
Check out "man rename". An example
rename 'foo' 'bar' dir* dir_foo1/ becomes dir_bar1/ dir_foo2/ becomes dir_bar2/ Quote:
rename "" "1-" 0* |
Thanks guys
|
if you wanted to renaming inside the folders for say imagesr like akjs.jpg bigpacks.jpg etc and rename them to 1.jpg 2.jpg 3.jpg.
Code:
#!/bin/bash |
All times are GMT -7. The time now is 12:51 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc