- This topic has 3 replies, 3 voices, and was last updated 16 years, 7 months ago by .
-
Topic
-
I am looking for the magic command or script that allows me to rename many files at once… for instance, I have files named Code:stats/msgHist/2008/Feb/14/asp_test_fr_HCMC_adt_ib.2008Feb14_15:55:41_Thu.idx.Z
stats/msgHist/2008/Feb/18/asp_test_fr_HCMC_adt_ib.2008Feb18_23:55:41_Mon.idx.Z
stats/msgHist/2008/Feb/18/asp_test_fr_HCMC_adt_ib.2008Feb18_15:55:40_Mon.idx.Z
stats/msgHist/2008/Feb/19/asp_test_fr_HCMC_adt_ib.2008Feb19_23:55:42_Tue.idx.Z
stats/msgHist/2008/Feb/19/asp_test_fr_HCMC_adt_ib.2008Feb19_15:55:41_Tue.idx.Z
stats/msgHist/2008/Feb/20/asp_test_fr_HCMC_adt_ib.2008Feb20_07:55:40_Wed.idx.Z
stats/msgHist/2008/Feb/20/asp_test_fr_HCMC_adt_ib.2008Feb20_23:55:42_Wed.idx.Z
stats/msgHist/2008/Feb/20/asp_test_fr_HCMC_adt_ib.2008Feb20_15:56:10_Wed.idx.Z
stats/msgHist/2008/Feb/20/asp_test_fr_HCMC_adt_ib.2008Feb20_11:55:41_Wed.idx.Z
stats/msgHist/2008/Feb/21/asp_test_fr_HCMC_adt_ib.2008Feb21_07:55:41_Thu.idx.Z
stats/msgHist/2008/Feb/21/asp_test_fr_HCMC_adt_ib.2008Feb21_11:55:41_Thu.idx.Zand I want to chage the asp_test_ to asp_test.
Code:stats/msgHist/2008/Feb/14/asp_test.fr_HCMC_adt_ib.2008Feb14_15:55:41_Thu.idx.Z
stats/msgHist/2008/Feb/18/asp_test.fr_HCMC_adt_ib.2008Feb18_23:55:41_Mon.idx.Z
.
.
.I am (almost) certain there is no way to do that in AIX. I tried pulling it down to dos, and that got rid of the fr_HCMC_adt_ib string as well.
Has anyone scripted this before? If not, stay tuned, I am working on it.
- The forum ‘General’ is closed to new topics and replies.