DevOps virtualization
In this assignment you will develop some simple bash shell scripts to allow you to automate repetitive tasks. You will also review other shell commands.
Begin by developing a shell script that will search for files within a directory whose name contains a space. Your script should replace all spaces in a filename with an underscore.
To setup you test environment, create a folder in your home directory called playground. Create test files within playground by executing the following from the command line:
for i in $(seq 1 10); do touch “file $i.txt”; done; for i in $(seq 11 20); do touch “file$i.txt”; done;
List these files to ensure they created properly.
Here is some pseudocode to help you solve this:
Here is a step-by-step guide for those of you who would like extra help.
Submit a screenshot of your script and proof that it worked.