#!/bin/csh -f

if ($#argv != 2) then
echo 'Usage: Unlock password filename'
echo '       decrypt a file and remove the suffix '
	exit(-1)
endif

set passwd = $1
set scrambled = $2
set normal = $scrambled:r

/sepcd3/SUN4/bin/decryptp $passwd <$scrambled >$normal
echo "$scrambled decrypted to $normal"
