[comp.unix.questions] How to make 'shar' files?

cjoslyn@bingvaxu.cc.binghamton.edu (Cliff Joslyn) (08/02/89)

I've unpacked them 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
| Systems Science, SUNY Binghamton, cjoslyn@bingvaxu.cc.binghamton.edu
V All the world is biscuit shaped. . .

vijay@bradley.UUCP (08/05/89)

>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@bradley.edu
|                     |
|  /\             /\  |        
| /  \  /\   /\  /  \ |
|/    \/  \ /  \/    \|
           |
           |