#!/bin/csh -f # base64 # ----------------------------------------------------------------------------- # Shell script to run the Base64 encoder. # ----------------------------------------------------------------------------- # Usage: See Usage section below or run with no arguments to see usage. # Assumptions: # Effects: # - Reads string from command line argument and writes to stdout. # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ----------------------------------------------------------------------------- if ($#argv < 2 || "$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t -decode string" echo " Decodes a Base64 encoded string" echo " $0:t -encode string" echo " Encodes a string as Base64" exit 1 endif java -classpath /Users/fred/fred/lib/bristle.jar 'com.bristle.javalib.util.Base64$Tester' $*:q