Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Script: Collapse the Subdirectory Goals: Write a simple bash script Write a script to automate moving all the files to another directory We have been
Script: Collapse the Subdirectory Goals: Write a simple bash script Write a script to automate moving all the files to another directory We have been left with a huge dump of text files in a redundant directory. Our goal is to move all of these files into the parent directory. Create a script to move each file from this directory to the parent directory. Name it collapse.sh You may set up the script to take the target and destination directory as parameters. Use CHMOD to make the script executable. After running your script ALL of the archive files should be in the /textarchive/ directory. Use your "Count Files" Script to confirm all the files were moved. Provide a before and after screen shot
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started