[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unix BSQ
Steve Craft (scraft@trident.usacs.rutgers.edu) wrote:
> I saw nulib 3.03 on wuarchive. I want to take those files and make them
> into something that will turn BINSCII into SHK files in my unix account.
> How to do it? Thanks.
You also need to get hold of sciibin, which should be available on "the
usual" ftp systems.
Here's a little csh script that I pipe comp.binaries.apple2 files into
from my newsreader (tin). I just tag all the parts of the bsc archive
then pipe them into applearchive. sciibin and nulib work great together!
-- Dave Tribby (tribby@cup.hp.com GEnie: D.TRIBBY)
------------------- csh script begins below this line ------------------
#!/bin/csh -f
# csh command file to handle Apple II archives as stdin
#
# Written by Dave Tribby * March 1993
# NO parameters should be provided
if ($#argv > 0) then
echo "usage: $0 < archive or cat archive.1 [archive.2 ... ] | $0"
exit 1
endif
# Do the work in the designated archive directory
cd ~/.dave/apple/new
sciibin
set error = $status
if ( $error != 0 ) then
echo "{$0}: sciibin reports error status $error"
exit 1
endif
set archive = `ls -t | head -1`
echo "Created archive `pwd`/$archive"
#####
# Check for binary header format (.BXY suffix)
if ($archive =~ *.[Bb][Xx][Yy]) then
echo "Removing binary wrapper from $archive"
nulib bxv $archive
set error = $status
if ( $error != 0 ) then
echo "{$0}: nulib reports error status $error"
endif
set archive = `ls -t | head -1`
echo "Created archive `pwd`/$archive"
endif
#####
# Print table of contents
nulib tv $archive
set error = $status
if ( $error != 0 ) then
echo "{$0}: nulib reports error status $error"
endif
exit 0
- References:
- Unix BSQ
- From: scraft@trident.usacs.rutgers.edu (Steve Craft)