Since cookies.lst is nothing more than a text file....

--- opendos v7.01 "find" works like this (modify the .BAT to work with
    other versions of "find") ---

FIND R1.47    Find text string
Copyright (c) 1987,1996 Caldera, Inc.  All rights reserved.

FIND [/Help] [options] "search string" [@][[d:][path]filename[.ext]...]
  /B  change display format
  /C  show only the number of lines that contained "string"
  /F  show only the name of files that contain "string"
  /I  case-insensitive search (default)
  /N  display line numbers
  /P  pause after each page is displayed
  /S  search files in sub-directories
  /U  case-sensitive search (e.g. 'A' does not match 'a')
  /V  display lines not containing "string"

  @  the filename that follows is the name of a file list
  d:  drive which find is to search
  path  directory where search is to begin
  filename.ext file to be searched (wildcards allowed)

Multiple files may be specified on the command line.
If no files are specified find will read from standard input.
____________________________________________

--- killasp.bat ---
del cookies.old
ren cookies.lst cookies.old
find /v "aspsession" cookies.old>cookies.lst
____________________

 The new cookies.lst will only contain those lines from the the old file
which did not contain the string "aspsession"

--- cookies.old ---
p_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/; expires=Thursday, 
31-Sep-37 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/
p_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com; expires=Tue, 
01-Jan-2036 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com
PREF=ID=0992976a54e4c36a:TM=981676706:LM=981676706; domain=.google.com; path=/; 
expires=Sun, 17-Jan-2038 19:14:07 GMT
s_cur_0_0=0101sisi0981676723e985d3Jx4+POyMKqqJnGmqKnptGgn5ypy5l6a4Ln5crU5M7Rxq2smZuZpaumom0=;
 path=/; domain=www.nbci.com
u_edition_0_0=home; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_edition_0_0=home; path=/; domain=.snap.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_vid_0_0=ffffffff; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
ASPSESSIONIDGGQGGUYC=PBDPLOJDDPPPFMJMEEHFFPAC; path=/; domain=msevents.microsoft.com
ASPSESSIONIDGQGQGJKC=KNLHDNJDMEHEGMLDMPPKMCGL; path=/; domain=msevents.microsoft.com
___________________

--- new cookies.lst ---

---------- l:cookies.old
p_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/; expires=Thursday, 
31-Sep-37 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/
p_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com; expires=Tue, 
01-Jan-2036 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com
PREF=ID=0992976a54e4c36a:TM=981676706:LM=981676706; domain=.google.com; path=/; 
expires=Sun, 17-Jan-2038 19:14:07 GMT
s_cur_0_0=0101sisi0981676723e985d3Jx4+POyMKqqJnGmqKnptGgn5ypy5l6a4Ln5crU5M7Rxq2smZuZpaumom0=;
 path=/; domain=www.nbci.com
u_edition_0_0=home; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_edition_0_0=home; path=/; domain=.snap.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_vid_0_0=ffffffff; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
_______________________

--- killnbci.bat ---
del cookies.old
ren cookies.lst cookies.old
find /v "nbci" cookies.old>cookies.lst
_____________________

--- cookies.old ---
p_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/; expires=Thursday, 
31-Sep-37 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/
p_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com; expires=Tue, 
01-Jan-2036 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com
PREF=ID=0992976a54e4c36a:TM=981676706:LM=981676706; domain=.google.com; path=/; 
expires=Sun, 17-Jan-2038 19:14:07 GMT
s_cur_0_0=0101sisi0981676723e985d3Jx4+POyMKqqJnGmqKnptGgn5ypy5l6a4Ln5crU5M7Rxq2smZuZpaumom0=;
 path=/; domain=www.nbci.com
u_edition_0_0=home; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_edition_0_0=home; path=/; domain=.snap.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
u_vid_0_0=ffffffff; path=/; domain=.nbci.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
___________________

--- new cookies.lst ---

---------- l:cookies.old
p_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/; expires=Thursday, 
31-Sep-37 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; domain=.go2net.com; path=/
p_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com; expires=Tue, 
01-Jan-2036 12:47:15 GMT
s_go2id=BYilSHt2j0udJ5leSybT8A; path=/; domain=.metacrawler.com
PREF=ID=0992976a54e4c36a:TM=981676706:LM=981676706; domain=.google.com; path=/; 
expires=Sun, 17-Jan-2038 19:14:07 GMT
u_edition_0_0=home; path=/; domain=.snap.com; expires=Thu, 31-Dec-2037 23:59:59 GMT
_______________________


-- 
 Glenn
(your friendly neighborhood compu-nerd)
          http://arachne.cz/
 http://www.delorie.com/listserv/mime/
  http://freedos-32.sourceforge.net/

Reply via email to