I have many files from b_in00 to b_in79, and I need to move these files to folders 00 to 79, with b_in00 going into folder 00, and so on. Could you guide me?
-w means apply padding to the left such that 1 becomes 01
There are many ways to do this. Personally, I would use a shell script.
In bash it would look like this:
or the single-line version
An alternative approach is to take all files, strip the leading b_in and use the remaining string as the directoryname:
Things that can go wrong and that I assume you check before you run this script: