Hogwarts Wand Docs: ../server/trytok

File: ../server/trytok

#!/bin/bash
#@DOC@ check tokens one spell at a time
#
# 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
# 

source /home/acorn/bin/colorcmd -n
con=`_send_color 7 1`
coff=`_send_coff`
for i in picfmtb_*/wpic*.txt
do
    #echo -n "`fmtb_parse -q -s -t $i | grep cycles`"
    echo "===============fmtb_parse -q -s -t $i" 
    ok=1
    fmtb_parse -q -s -t $i | grep -q '[*]' && ok=0
    if (( ! ok )) ; then
        fmtb_parse -q -s -t $i |
            sed -e "s|^.*[*].*$|${con}&${coff}|"
                
        echo "================== fmtb_parse -q -s -t $i" 
        read ans
    fi
done

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:50 PDT 2007