#!/bin/csh -f
# Position tape.
if ($1 == ^) then
  caterr <<'EOF'

  Position tape.
    usage: postape (b or e) device
    Arguments: b - Position to the beginning of the tape.
	       e - Position to the end of the tape and print file summary.
	       device - /dev/rmt12 for ts11, /dev/rmt5 for kennedy
			at 800 bpi and /dev/rmt13 for kennedy at 1600 bpi
'EOF'
  exit
endif

set pos=$1
set dev=$2

mt -t $dev rew
if ($pos == e) then
texam -f $dev
mt -t $dev bsf
endif
