Quote:
Originally Posted by
Shahul
Hi Raw,
Try this one..hope this should work..
#!/bin/sh
for x in *.html
do
echo $x | grep -l "<[A-Z]>"
if [ $? -ge "0" ]
then
echo $x
fi
done
oR
You can use like ..
grep -l "<[A-Z]>" *.html
this will print all the file name which has upper case tab inside...
Thanks
Sha
Hello Shahul,
Thank you for your response and help.
With the edited changes it does not work.
Lets say I have a directory of:
uppercase.sh
test_0.html --- File has <P> capital tag
test_1.html --- File has no capital tags
test_2.html --- File has no capital tags
The output result is as follows:
test_0.html
test_1.html
test_2.html
Expected Result: ( I could be wrong)
test_0.html test_0.html
test_1.html
test_2.html