Rename Directories Sequentially (Hexadecimal Format)
Hi,
I have a huge number of directories in a folder and I need suggestions to write a Linux script to rename those directories sequentially like the following format (Set_SIXDIGITHEXADECIMALNUMBER). Set_001220 Set_001221 Set_001222 Set_001223 Set_001224 Set_001225 Set_001226 Set_001227 Set_001228 Set_001229 Set_00122a Set_00122b Set_00122c Set_00122d Set_00122e Set_00122f Set_001230 Set_001231 Set_001232 Set_001233 Set_001234 Set_001235 Can anyone help me? Thanks. IS IT POSSIBLE ?? |
I'm not sure 100% what you are asking for, and I caution you to be careful when doing this so you don't accidentally overwrite directories, but I believe the following bash script should work
Code:
#/bin/bash |
Thanks Sarum, you gave me exact solution.
Quote:
|
All times are GMT -5. The time now is 09:13 PM. |