Hi all-
I have a variable that contains a web page:
echo $STUFF
<html> <head> <title>my page</title></head> <body> blah blah etc..
Can I use the shell's parameter expansion abilities to remove just the tags? I thought that FIXHTML=${STUFF//<*>/} might do it, but it didn't seem to work.
Do I need to escape the < and > or something like that?
Thanks!!
-Rev66
depending on exact content, this should mostly work:
# echo $STUFF | sed 's/<[^>]*>//g' my page blah blah
I had considered doing that exact thing, but I'd really like to avoid the additional process if possible by doing it in the shell...