Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a script that takes a filename on the command line as its argument. If no file name is provided, print an error message and

write a script that takes a filename on the command line as its argument. If no file name is provided, print an error message and exit. The script should compress the file with each of these programs: gzip, bzip2, and zip. At each stage, gather the size of the file before and after compression. Then, display a report showing the compression program, the uncompressed size, the compressed size and the compression ratio (up to one decimal place). This output should be ordered by the compression achieved, with the most efficient compression featured first. In UNIX/LINUX

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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

Why is it a good idea to avoid being judgmental? (p. 177)

Answered: 1 week ago

Question

=+What do you think about the CDFI Fund, establish in 1994?

Answered: 1 week ago