#!/bin/bash #@DOC@ collect data from wwlog.txt # # Copyright (C) 2006 Nathan (Acorn) Pooley # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License (gpl.txt) for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # You can contact the author, Nathan (Acorn) Pooley, by writing # to Nathan (Acorn) Pooley, 949 Buckeye Drive, Sunnyvale, CA 94086, USA # or through the form at http://www.rawbw.com/~acorn/wand/feedback.html # \rm -f puke1 puke2 grep '^Wand:' wwlog.txt | sed -e 's|Check Motion|CkMot|' > puke1 c=`egrep -n "'CkMot'" puke1 | tail -1 | sed 's|:.*||'` tail +$c puke1 > puke2 c1=`grep "'CkMot'" puke2 | wc -l` c2=`grep "'Sp.. Sc" puke2 | wc -l` if (( c1 != 1 || c2 < 2 )) ; then echo "Bad read!!" exit 0 fi grep "Wand: 'a................'" puke2 > puke4 n=0 while (( n < 1000 )) do namew="wpic_$1_$n.txt" ok=1 if [[ -f $namew ]] ; then ok=0 else for i in picfmtb_* do if [[ -f $i/$namew ]] ; then ok=0 break fi done fi if (( ok )) ; then break fi (( n = n + 1 )) done if [[ ! -f $namew ]] ; then echo "Creating $namew" fmtb_parse -e < puke4 > $namew wc $namew fi #cp puke3 puke #echo "fmtb_parse -t -s -R < $namem" #echo "fmtb_parse -t -s -R $1 < $namem" #echo "fmtb_parse -t -s -R dad < $namem" #echo "fmtb_parse -t -s -R cheese < $namem" #echo "fmtb_parse -t -s -R < $namea" #echo "fmtb_parse -t -s -R $1 < $namea" #echo "fmtb_parse -t -s -R dad < $namea" #echo "fmtb_parse -t -s -R cheese < $namea" echo "" echo "NOTE: use name of spell as argument to aaa" echo "" echo "fmtb_parse -S $1 $namew" echo "fmtb_parse -S $namew" echo "tryg $1 $namew" fmtb_parse -S $namew |
This file Copyright (C) 2006 by Nathan (Acorn) Pooley
Go to TOP Wand page
Go to Acorn's personal webpage
Go to Hogwarts website: www.gotohogwarts.com
Snout: www.snout.org/game
Gadgets of Justice Unlimited
Snout GC (Wiki)
Snout Wiki
File created by do_doc at Wed May 30 03:30:29 PDT 2007