Question: Using Bash (Shell), I created a directory on my desktop called Project1 and added 500 files to it named rock0.py, rock1.py, ... , rock500.py. I
Using Bash (Shell), I created a directory on my desktop called Project1 and added 500 files to it named rock0.py, rock1.py, ... , rock500.py. I want to add leading zeros to these files (i.e, I want to convert their names to rock000.py, rock001.py, ... , rock500.py. How can I achieve this? Please give me a few code options to run in bash to answer this question. Keep in mind that I am a noob to Shell, hence please be as careful of the spacing and idententation etc. as possible to avoid any confusion. Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
