Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Name : Program to archive and recover files.

Synopsis : This program finds and archives files matching some


patterns
and also recovers them from the archive.

Details : There is a config file in the user's home directory for this
program. According to that config file this program finds
the files matching the patterns given in the config file and
archive all that files taking the name of the archive from
the config file. It also gives options whether the user
wants to add file to the archive or recover files from the
archive. According to the option given by the user and the
config file it does the work.

Input : Input is taken from file and also from the keyboard. The
pattern of files to be archived and the name of the archive
is given in the config file and the option whether the user
wants to recover or add file is taken from the keyboard.

Output : When the user wants to change the name of the archive
file
then the output goes to the config file and the name of the
archive file is changed.

Discussion : The advantages of the shell programming language are :


-
1. It is very simple to handle files in shell program.
The shell manages the file manipulation work, all
that a programmer has to do is the operations on
the file.
2. All the commands of the shell can be used in the
shell program.

The disadvantages of the shell programming language are : -


1. It is not possible to do graphics programming in
the shell programming language.
2. The shell program can not be compiled so the code
is the executable program which is available to all
and any change in the code may make the program not
to work.

You might also like