home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / MISC / SCRIPTS.ZIP / GSORT < prev    next >
Encoding:
Text File  |  1991-08-09  |  595 b   |  22 lines

  1. #    --- Unix shelll script
  2. # append messages that have been uploaded to GEnie to the "rep" file
  3. #
  4. for i in ZG*.tmp Z003*
  5. do
  6. cat -s $i >>rep
  7. rm -f $i
  8. cat <<F >>rep
  9.  
  10. F
  11. done
  12. #
  13. # search the capture file for selected keywords
  14. #
  15. egrep 'Yam[^a]|[^A-Z]OMEN[^A-Z]|Omen|[ -]YAM|[fF]orsberg|[izIZ]-*[mM]odem|[IZ]-*MODEM|GSZ|gsz|Gsz|DSZ|dsz|Dsz|[zZ][cC][oO][Mm][mM]'  gen*.tmp > subsgenie
  16. echo '------------------------------------' >> subsgenie
  17. #
  18. # Generate a sorted list of subjects that were discussed
  19. #
  20. nice -20 egrep '^Sub: ' gen*.tmp | sed -e 's/^Sub: *//' |sort -dfu >> subsgenie
  21.  
  22.