#!/bin/tcsh -f
##################################################
## unzip v1.0 by JC
## ----------
## usage:
## unzipAll
##  ==> unzip each file in the current directory
##
## unzipAll /here/there/
##  ==> unzip each file of /here/there/
##
## unzip there/
##  ==> unzip each file of $PWD/there/
##################################################

###################################################
## get files
if ($1 == "") then
  echo "unzip All *.zip"
  set FILES=`ls *.zip`  
else
  echo "unzip All {$1}*.zip"
  set FILES=`ls {$1}*.zip`
endif

###################################################
## unzip each one

foreach NAME ($FILES)
  unzip $NAME
end
echo "------ Done!"

exit 1
