Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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