compress
will take a file and compact it to
something smaller, to save space. Given a file as argument, it will
compress it and rename it by adding a suffix .Z
For
example,
file1
to file1.Z
Write a bash shell script that will compress all the ordinary files in the
current directory and in all of its subdirectories.
The script should not attempt to compress files that have already
been compressed i.e. those that end in .Z
should
not be compressed again.
reverse
then
isdir
that takes one command line argument.
It should have an exit code of 0 if the argument is a directory, or other
values if it is not. Hint: use stat()
del
.
The device driver will "autorepeat" keys if a key is pressed for long enough.
Explain how it can do this. Explain whether or not it should autorepeat
every key.