とある仕事のために、大量のファイルを分類してZIP形式とStuffIt形式で圧縮し、FTPでアップロードする、という作業をしなければならないのだが、伝統的なMacのソフトウェアはGUIでドラッグ&ドロップが前提のソフトウェアが多く、これまでなくなく圧縮の部分だけ手作業でやっていた。Macの人って我慢強いね (^_^;;
今回、Mac OS X版のStuffIt Deluxeにどうやらコマンドライン版があるというので、1万円を出して買ってみた。確かにstuffとunstuffというのがついてきた。こいつの情報をWebで探しまくったけどなかったので、今回は半分人柱な気持ちで買ったらあたりだったが、もしかすると同じような人がいるかもしれない。ちょっとhelpを晒しておこうと思う。
$ stuff --help Usage: stuff [-option [value]] [--option[=value]] (files... | directories...) Note: Some formats do not support all the options below. In those cases, the options will be ignored. -f --format=formatname Archive format to create, ie: sit5, zip, etc. -F --formats Shows supported archive formats. -l --level=n Set the compression level [0-16]. -m --compression_method=n Set the compression method [0-6]. (0=none, 1=LZ-Huffman, 2=LZ-arithmetic, 3=Blocksort, 4=PPM, 5=Automatic, 6=Blend) -n --name=file Name of the archive to create. -p --password=password Assign a password to the archive. -q --quiet Suppress status messages. -v --version Shows version information. -P --pause Waits for keyboard stroke at the end processing. -s --segment Segment the output file (Use -S to specify a non-default size.) -S --size=size Sets the segment size for segmented archives. -t --seatype=seatype Create self-extracting archive. (seatype=classic or win). -c --convert Convert an archive to a different format (specified by -f or --format). -o --overwrite Overwrite existing files. -e --encryption_method=method Encryption method [0-4]. (0=none, 1=RC4, 2=DES, 3=BlowFish, 4=AES) -k --keysize=size Encryption keysize. [0-512] bits -L --encoding_level=level Encoding level [0-5]. (0=none, 1=base64, 2=base85, 3=base222) -x --extents=extents Number of extents [10-25]. -r --redunancy_level=level Redunancy level [1-64]. (Redunancy is turned off by default) -D --delete Delete originals. -O --optimize=on|off Optimize (on or off). -i --inputfile=filename Get filelist from an input file. Input file should contain a list of files to stuff. -h --help Shows this usage display.
マニュアルといえばこれぐらいしかないみたいだが、いやーこれでずいぶん楽になる。フリーのがあればいいんだけど、まあとりあえずは仕方がないな。