if [ "$1" == "" ]; then
echo "too few arguments"
exit
elif [ "$1" == "-q" ]; then
echo "q option"
else
echo "other option"
fi
ctr=1
while [ $ctr -le 10 ]; do
echo "loop $ctr"
ctr=$[ $ctr + 1]
done
for i in `ls`; do
echo "filename : $i"
cp $i ~/copydir/$i
done
for i in `seq 1 10`; do
echo "loop $i"
done
exec 3< filename.txt
while read VAR1 0<&3
do
echo $VAR1
done
cat << EOF > filename.txt
alpha
beta
gamma
EOF