Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions