Hi !
This is my problem.Normally this regular expression
[^<>]
should suppress any line which do not have "<" or ">"
but when i do :
if
[ $line = "[^<>]" ]
then
echo " no tags"
else
echo " tags"
fi
Every line i put in "line" ( including the ones with tags) are echoed as "no tags" !!!
same troubles with this :
sed -e '/[^<>]/d'
::evil::
This is my problem.Normally this regular expression
[^<>]
should suppress any line which do not have "<" or ">"
but when i do :
if
[ $line = "[^<>]" ]
then
echo " no tags"
else
echo " tags"
fi
Every line i put in "line" ( including the ones with tags) are echoed as "no tags" !!!
same troubles with this :
sed -e '/[^<>]/d'
::evil::