HOW TO TURN IN MULTI-FILE SOURCE CODE
If you have a program that consists of more than one file then
the shar command can provide a
way for you to create a single archive file.
shar deq.h deq.cpp driver.cpp testScript > mysource
The shar command above "packs up" all the files comprising the program
(deq.h, deq.cpp, driver.cpp, and testScript) into one shell archive
file
called mysource. We can "unpack" all the source files by executing the
command:
/bin/sh mysource
After the command above has executed, there will be copies of deq.h,
deq.cpp, driver.cpp, and testScript in the current
directory.
Shar is a big time-saver for both the sender and the receiver when a
group of file need to be emailed.