home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Web / Utilities / counter_digits / mode.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-05-03  |  269 b   |  19 lines

  1. #! /bin/sh
  2.  
  3. IMGDIR=images
  4. CURRDIR=`pwd`
  5.  
  6. if test ! -d ${CURRDIR}/${IMGDIR}
  7.     then    
  8.         echo I did not find the directory \"${IMGDIR}\" in the current directory. Exiting ...
  9.         exit 1
  10. fi
  11.  
  12. for i in ${CURRDIR}/${IMGDIR}/*
  13. do
  14.     chmod go-w $i/*.gif
  15.     echo Done in : $i
  16. done
  17.  
  18. exit
  19.