#!/bin/sh # I18N Guidelines and Techniques docbase=$1 jbchar=$2 locale=$3 echo "docbase is $1, jbchar is $2 and locale is $3" if [ "$docbase" = "IDE" ] then realdocbase="/lib/locale/$locale/lib/html" fi /bin/rm -f ./docfilelist find "$realdocbase/help/common" -name '*.html' -print > docfilelist find "$realdocbase/help/sepfiles" -name '*.html' -print >> docfilelist ## call perl program #file will be fullpath and perl prog will edit in place ..with bakup # will operate on each file in place and rename prev to prev.old echo $jbchar > jbcharfile for i in `cat docfilelist` do echo $i sep.perl $i done