SHAR(1)
π SHAR(1) π
okay bestie, this is the manual page for shar, one of the Perl user-contributed docs. yes it's giving "why is this in a Perl manpage" but we don't ask questions, we just vibe π
β¨ NAME β¨
shar β literally create a shell archive of files π¦
β¨ SYNOPSIS β¨
shar file...
β¨ DESCRIPTION β¨
so here's the tea π₯ shar reads your input files and writes a shell archive out to standard output. that's the main character move right there.
and a shell archive? it's just a shell script, no cap. you run it, and boom β it recreates the files for you. it's giving "self-extracting zip but make it 1985" π
π«Ά important vibe check on permissions: file permissions are not preserved for archived files. like, at all. extracted files get created with the default file permissions and owner. don't come for me, that's just how it is π
directories will get recreated, but here's the catch: directory arguments must be provided before the files they contain. order matters, bestie. dir first, then the stuff inside it, otherwise the whole thing falls apart π
β¨ SEE ALSO β¨
unsharβ the reverse slay π the thing that unpacks whatsharpacked
β¨ AUTHOR β¨
Rich Salz β and yes, the whole contact card: salzr@certo.com | rsalz@osf.org | rsalz@bbn.com π
β¨ COPYRIGHT β¨
this code is released to the public domain. free as a butterfly, fr fr π¦ no license drama, no fine print, we love to see it β¨
π and that's the page! logging off with the very official sign-off details: this is perl v5.42.2, dated 2026-02-15. bye bestie, go archive something iconic ππΈ
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms