Tuesday, August 1, 2017

How to batch-rename long file names into short ones under Linux?

I have a lot of data with file name (just for example):


dt_upd_global_merged_madt_uv_20100801_20100801_20110721.bil
dt_upd_global_merged_madt_uv_20100802_20100802_20110721.bil
dt_upd_global_merged_madt_uv_20100803_20100803_20110721.bil

What should I do if I want to rename that files into the following?


20100801.bil
20100802.bil
20100803.bil

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...