Rawmaterial
In Runtime
- Messages
- 252
Hello All,
I am trying to write a script to search in my current directory to look for all files that end with HTML and look for any HTML tags that are in upper case. for example if I were to grep test.html and test.html has a tag <P> instead of <p> then it would print the file name. This is what I have:
#!/bin/sh
for x in *.html
do
echo $x | grep \<[A-Z]+\>
if [ $? -ge "1" ]
then
echo $x
fi
done
thanks in advance.
I am trying to write a script to search in my current directory to look for all files that end with HTML and look for any HTML tags that are in upper case. for example if I were to grep test.html and test.html has a tag <P> instead of <p> then it would print the file name. This is what I have:
#!/bin/sh
for x in *.html
do
echo $x | grep \<[A-Z]+\>
if [ $? -ge "1" ]
then
echo $x
fi
done
thanks in advance.