Hi,
Could you please let me know what's wrong with this script.
#!/bin/sh
for FILENAME in *.jsp
do
echo "processing ${FILENAME}"
name=Zaizar
cnt='grep -c $name ${FILENAME}'
echo $cnt
done
Instead of giving me the count it's simply printing
'grep -c $name ${FILENAME}'
Please let me know what's wrong here.
Bytheway i use C shell.
Thanks A Lot,
Suja.
[This message has been edited by sujatha mamidala (edited March 16, 2001).]