batch renaming using awk and bash

This little command will trim the first 27 characters of files in the directory you’re in.

It also assumes that your files are no longer than 99 characters in length.

Adjust to suit.

ls | awk '{print "mv "$1 " " substr($1, 27, 99)}'|sh


If you want to test remove the bit of the command I highlighted in red.