Question: How can a shell script be written when: Given a list of filename as input, this script queries each target file( parsing the output of

How can a shell script be written when: Given a list of filename as input, this script queries each target file( parsing the output of the file command) for the type of compression used on it. Then the script automatically invokes the appropriate decompression command ( gunzip, gunzip, unzip, uncompress, or whatever). if a target file is not compressed, the script emits a warning message, but takes no other action on that particular file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!