Bash script to move and rename files based on a file name
I have a bunch of files that I need to move based on a file name and than once moved files need to be renamed:
group of files
to be moved based on its 4th and 5th character (55) to a folder 55 and then renamed to file 12345..742394.txt (remove first four characters). All files are numeric names and all folders are in the same directory level, and folders are already created.