MACUNPACK(1)

πŸ’– MACUNPACK(1) β€” the de-archiver girlie πŸ’–

okay so bestie, welcome to macunpack, a whole General Commands Manual situation, and no cap this one is a baddie: it's a Macintosh file de-archiver. Let's get into it πŸ¦‹


✨ SYNOPSIS ✨

macunpack [ - options ] [ file ]

🌸 DESCRIPTION 🌸

So here's the vibe: macunpack takes the Macintosh MacBinary archive you named in file β€” or, if you didn't name one, it just reads from standard input, periodt β€” and it extracts the files inside it, but subject to the options you specified. Like, the options are the whole personality here πŸ’…

Oh and also? For some kinds of archive, the program will straight up accept the data fork of the archive as standard input too. iconic behaviour honestly.


πŸŽ€ OPTIONS πŸŽ€

okay so, plot twist: if you pass no options at all, macunpack just takes the archive you gave it and silently extracts the file(s) inside into MacBinary format, giving the output files .bin extensions and dropping them in the current working directory. Embedded folders get their own subdirectories created, as a treat 🫢

now the actual flags, one by one, no skipping, we're thorough in this household:

  • -3 β€” writes files in fork format, i.e. the .info, .data and .rsrc files.
  • -f β€” same energy as -3, except empty data and rsrc files do not get created. minimalism, we love her.
  • -r β€” writes resource forks only, so just .rsrc files.
  • -d β€” writes data forks only, so just .data files.
  • -u β€” acts like -d, but the codes for CR and LF get interchanged, and the filename extension is .text.
  • -U β€” acts like -u, but there is no filename extension at all. nude. exposed. unbothered.
  • -a β€” writes files in AppleShare format. ⚠️ this one is only valid if the program is compiled with support for some form of AppleShare, and the current directory must be a valid AppleShare folder. no exceptions bestie, the directory has to be valid or it's not happening.
  • -s β€” writes the extracted files to standard output in MacBinary format.
  • -l β€” lists every file extracted (and every directory/folder created etc.). the receipts, we love receipts 🧾
  • -v β€” like -l but more verbose, and it implies -l. she said and I oop, let me tell you EVERYTHING.
  • -i β€” do not extract, give information only, and it implies -l. look, don't touch πŸ‘€
  • -q β€” asks you, the user, about every single file/folder whether it should be extracted, and it implies -l. so many questions. so much power. main character energy fr fr.
  • -V β€” gives the patchlevel of the program, plus other information. other options are ignored and the program quits immediately. she's leaving, bye πŸ’¨
  • -H β€” gives short information about the options. also: other options are ignored and the program quits immediately. same dramatic exit, different reason πŸ’€

πŸ’€ BUGS πŸ’€

okay so listen β€” this is a beta release, so there may still be some problems lurking. not me being the bearer of bad news but: archives that are password protected are not dealt with, and multi-file archives are not dealt with either. so if that's your situation... it's giving unsupported, bestie 😭


πŸ”₯ SEE ALSO πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl)

and parts of the code are based on codes from a whole legend squad, respect the lineage: Steve Davies, Rahul Dhesi, Casper H.S. Dik, Jim McKie, Mark G. Mendel, Haruhiko Okumura, Joe Orost, Samuel H. Smith, Yooichi Tagawa, Spencer W. Thomas, Ken Turkowski, Allan G. Weber, James A. Woods and Haruyasu Yoshizaki. we stan every single one 🌈⭐


and that's the whole page bestie!! this one's brought to you by the 3rd Berkeley Distribution, dated October 22, 1992 β€” yes she's vintage, yes she still serves πŸ’…πŸ’–βœ¨