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
Get step-by-step solutions from verified subject matter experts
