05-14-2008
190,
0
Join Date: Feb 2007
Last Activity: 12 March 2017, 5:35 AM EDT
Posts: 190
Thanks Given: 1
Thanked 0 Times in 0 Posts
script help
I am getting below error
count.sh: 0403-057 Syntax error at line 2 : `for' is not expected.
count.sh
========
for name in `cat list.txt`
for name1 in `cat ctllist.txt`
do
x1=`cat $name|wc -l`
x2=`cat $name1|wc -l`
if [ $x1==$x2 ] ; then
echo "count matches :$name"
else
echo "File1 count:$x1"
echo "File2 count:$x2"
fi
done
Thanks in advance
MR