#!/bin/bash
#####################################################################
##
##	This is a simple script to move all "text_" files from their
##	current directory to their text directory
##
##	Jed Reynolds, Nov 1995
##
#####################################################################

echo Moving text files...
IAM=`pwd`
IAMNOW=${IAM#/home/hed/robo/webstuff/devel/}

if [ -d /home/hed/robo/webstuff/devel/text/${IAMNOW} ]; then
	echo YES
else
	echo NO
fi

#for each "text_" file
for INFILE in $1*; do
	y=${INFILE#text_}
	TEXTOUT=/home/hed/robo/webstuff/devel/text/${IAMNOW}/$y
	echo $1 to $y to $TEXTOUT

	cp $INFILE $TEXTOUT
done
echo done.