Answered step by step
Verified Expert Solution
Link Copied!

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

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

2. Explain grades or test results.

Answered: 1 week ago