sw@nan.UUCP (Sak Wathanasin) (11/13/89)
[MPW scripts to split/join files] Here are two short MPW shell scripts to split and join files in the format used by the comp.binaries.mac newsgroup. To use them, put them in a folder that is in your {Commands} path. To split a file use split [n] origFile Comments e.g. split orig.sit.hqx "A nifty program" The optional parameter N, specifies the no of lines that each file should contain (defaults to 1000). The output files are named origFile.p1, origFile.p2 etc Join takes a set of files generated by split or a set of postings from comp.binaries.mac, strips off news headers etc and joins them back into one file. Comments in the first file are echoed to the Worksheet from which you can cut & paste into an "About..." file for future reference. join files > combinedFile e.g. join orig.sit.hqx.p? > foo.hqx Split followed by join should produce an identical file: compare foo.hqx orig.sit.hqx File #1: foo.hqx File #2: orig.sit.hqx *** Files match *** Does anyone have an MPW tool to unhex the result of join? Would be nice to do "join files.p? | unhex" ... -- Sak Wathanasin Network Analysis Limited uucp: ...!ukc!nan!sw other: sw%nan.uucp@ukc.ac.uk phone: (+44) 242 520861 telex: 9312130355 (SW G) snail: Flat 4, Albany House, Lansdown Rd, Cheltenham, Glos GL50 2HY, UK --- (This file must be converted with BinHex 4.0) :$P0`E'Pd,8T[D@iZFfPd!&0*9#&6593K!!!!!!JD!!!!!"aQ8dP8)3!#!!!)'R* -BA8"!!!!!!!!!!)#"%T[D@jZ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&4&@&408&-J!3#K35l'S83VQ`! !!Ai!!!9b!!!!c`!!!fjhJQBb!!!!!!!!id`!!!3)+*!!#8'$!@@)f96,AN!#"#% %I""3`C!!+@-5%#PM"`590frBc(QSj%dD0bd%%+45"!Z9*P#QJ"J)3!4"JPK`h@6 T%UC-QMC[#KdD-!H)8%&F'!YB3%l!!(k%&S"&-!!ESNbT@V@+YD[AVf$$LKdE&JQ !"%hHZ!NcjJd!0'A`J$#6KNfC13hbiRK+!SFb!$N!C!!-`!!!L)%c")!53"jKaBc PK5+bBK2"ICG[dK4B&5%!cc)!#+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