HEXBIN(1)

πŸ’– HEXBIN πŸ’–

okay bestie, welcome to hexbin β€” the Macintosh file de-binhexer, manual page HEXBIN(1), from the General Commands Manual. she's giving retro Mac energy and she is so ready to unpack your text files πŸŽ€


✨ NAME ✨

hexbin β€” Macintosh file de-binhexer πŸ¦‹


🌸 SYNOPSIS 🌸

hexbin [ - options ] [ files ]

πŸ’« DESCRIPTION πŸ’«

so like, hexbin takes the text files you list in files β€” or straight-up standard input if you don't name any β€” and converts them, subject to whatever options you picked. that's the whole vibe. no cap. ✨


πŸ‘‘ OPTIONS πŸ‘‘

and now the main character section πŸ’… if you pass no options at all, hexbin just quietly scoops up the files you named and converts them into MacBinary format, slaps a ".bin" extension on the output files, and drops them in the current working directory. silent. effortless. iconic.

  • -3 β€” write files in fork format (the .info, .data and .rsrc files). three-for-one, we love to see it 🫢
  • -f β€” same as -3, except empty data and rsrc files just… don't get created. if there's nothing to put in them, they don't exist. minimalism ✨
  • -r β€” write resource forks only (.rsrc files).
  • -d β€” write data forks only (.data files).
  • -u β€” like -d, but the codes for CR and LF get interchanged, and the filename extension becomes .text. little swap, big difference πŸ’€
  • -U β€” same as -u, but with no filename extension at all. naked filename. bold.
  • -a β€” write files in AppleShare format. πŸ“ careful though: this one is only valid if the program was compiled with support for some form of AppleShare, and the current directory has to be a valid AppleShare folder. no AppleShare, no party.
  • -s β€” write the extracted files to standard output in MacBinary format. straight to stdout, no files left behind 🌈
  • -l β€” list every file extracted (and every directory/folder created, etc.). receipts for everything πŸ“‹
  • -v β€” like -l, but more verbose. when you turn this on, all the lines that got skipped because they don't belong to the hexified format get listed too. (this implies -l.) it's giving full transparency πŸ”₯
  • -i β€” do not convert, give information only. (this implies -l.) look but don't touch energy πŸ‘€
  • -c β€” do not check whether the hexified lines have equal size. normally hexifiers produce text files with equal length line size, and hexbin uses that as part of its heuristics to decide whether a line must be skipped. but there are hexified files that just do not conform to that pattern. if you specify this option, hexbin will in general be unable to detect whether a line is garbage or not β€” so you have to remove the garbage by hand. bestie, that's on you πŸ’€
  • -n name β€” gives the Unix base file name for the converted files. for files hexified with BinHex 4.0 or compatible hexifiers you do not need this flag; hexbin will determine the Unix file name based on the Mac file name. for files in dl, hex or hcx format though, you may need this parameter, because those formats don't include the Mac filename. normally hexbin will in those cases base the Unix file name on the text file name, but this parameter can overrule that. πŸ’…
  • -V β€” gives the patchlevel of the program, plus other information. other options are ignored and the program quits immediately. bye bestie πŸ‘‹
  • -H β€” give short information about the options. other options are ignored and the program quits immediately. the quick little cheat sheet πŸŽ€

πŸ™ˆ BUGS πŸ™ˆ

as this is a beta release, there may still be some problems. she's still growing, okay? be nice to her 😭


πŸ” SEE ALSO πŸ”

macutil(1)


πŸ’œ AUTHOR πŸ’œ

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

parts of the code are based on codes from: ahm (?), Darin Adler, Jim Budler, Dave Johnson, Dan LaLiberte, Jeff Meyer, Guido van Rossum. shoutout to the whole group chat 🫢✨


and that's the page, bestie!! this one's from the 3rd Berkeley Distribution, dated October 22, 1992 β€” vintage but still serving πŸ’… HEXBIN(1), that's a wrap πŸŽ€πŸ’–