PAR(1)
π PAR(1) π
okay bestie, so this is par β a little icon from the User Contributed Perl Documentation section of the manual (yes, that's the manual name, and yes, it's a whole vibe) π
β¨ NAME β¨
par β literally creates a Perl archive of files π¦
πΈ SYNOPSIS πΈ
par [-s submitter] [-STBqvz] file [files...]
π DESCRIPTION π
so par creates a Perl archive out of the files you list on the command line. and no cap, the Perl archive is a Perl script β run it and it recreates the files for you, like magic β¨
if any of the files include a path, then the directories in that path get recreated too, so nothing gets lost π«Ά
and if any of the files is a directory? the whole contents of that directory get archived. yes, all of it. main character directory energy π
β OPTIONS β
par automatically figures out whether files are text or binary, unless you go and use -B or -T. iykyk π
-Bβ all files are binary, periodt. Files get encoded withuuencode, anduudecodewill be required to recover them. so like, keep that in mind π-Sβ read standard input for files, one file per line, as though they were included on the command line. for example:
find . -name 'chapter[1-9].txt' -print | par -S > story.par
-Tβ all files are text. no encoding necessary, we're chilling πΈ-ssubmitter β use submitter for the email address included in theparheader π-qβ shhh! π€« (quiet mode, bestie)-vβ print version info and exit. bye π-zβ mimicshar. create a shell archive instead of a Perl archive π
π¦ NOTES π¦
renaming or linking par to "shar" will cause it to create shell scripts instead. iconic behavior tbh:
ln par shar
shar moogle.txt > moogle.shar
π SEE ALSO π
shar, unpar, uuencode
π AUTHOR π
this implementation of par was written by Tim Gim Yee, tim.gim.yee@gmail.com. we stan π«Ά
π COPYRIGHT and LICENSE π
this program is copyright (c) Tim Gim Yee 1999.
this program is free and open software. you may use, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same. that part matters, bestie β don't be that person π
okay that's the whole page, you're welcome π this one's from perl v5.42.2, dated 2026-02-15 β go forth and archive slayfully β¨π
π¦ 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