Skip to main content


Getting started with Parameter expansion and pattern substitution for files

Submitted by daniel on
I have recently been working on a project to transfer all of my legacy backups that include quite a lot of cd's and dvd's with tracks on that I have backed up over the years. When backing these up, a lot of the file names were prefixed with numbers underscores and hyphens etc. When organising these thousands of files, I was looking for a way to name them in a consistent manner and where necessary, remove any duplicates that I had.