How to make 'shar' files?

vijay at bradley.UUCP vijay at bradley.UUCP
Sat Aug 5 08:47:00 AEST 1989


>I've unpacked them [shar files] all the time, but how do I make one?  
>I presume there
>are a variety of different scripts that make these things (it's not that
>tough), but what are they called?  Is there a standard name?  We run
>Ultrix here at Binghamton, is it called something else there?  etc. . .
>
>Actually, if it's a script, I'd appreciate getting one to run under MKS
>Korn shell. . .
>
>Thanks in advance. . .
>
>-- 
>O---------------------------------------------------------------------->
>| Cliff Joslyn, Cybernetician at Large
[ End of text ]

Actually it is very simple. All you have to do is something like this from
the shell:
           $ shar file1 file2 file3 > OUTFILE
This works in System V, and 4.3 BSD. It should also work on the Ultrix 
(hopefully!!). And it is a Bourne shell script, not a Korn shell.
But it should not be too hard to code it in ksh, if you follow the sh 
version.

Have fun...
--
  /|               |\          Vijay K. Gurbani
 / |    /\___/\    | \         Distributed Systems
|  |   /       \   |  |        Bradley Hall, Rm 6G
|  |  |         |  |  |        Bradley University
|   \ |         | /   |        Peoria, IL 61605
|    \           /    |
|         I'm         |        ...!uiucdcs!bradley!vijay
|        BATMAN       |        vijay at bradley.edu
|                     |
|  /\             /\  |        
| /  \  /\   /\  /  \ |
|/    \/  \ /  \/    \|
           |
           |



More information about the Comp.unix.questions mailing list