home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume7 / nsubj / subj.old < prev    next >
Text File  |  1989-06-03  |  318b  |  24 lines

  1. #! /bin/sh
  2. case $1 in
  3.     "") dir=.;;
  4.     *) dir=$1;;
  5. esac
  6.      cd $dir
  7.     for i in `ls -t`;do
  8.         if [ -d $i ]
  9.         then
  10.             echo ${i}': ****directory****'
  11. #            cd $i;/bin/sh /usr/uncw/subj
  12. #            echo ${i}'******end******'
  13.         fi
  14.         if [ -f $i ]
  15.         then
  16.             echo -n "$i:";head $i|if fgrep ubject
  17.             then
  18.             :
  19.             else
  20.             echo
  21.             fi
  22.         fi
  23.     done
  24.