first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / files / strip_html_code.sh
1 #!/bin/bash
2
3 # strips out html tags and sends results to standard input.
4 function strip_html_code()
5 {
6   for i in $*; do
7     echo "----------------------------------------"
8     echo "Text for web page: $i"
9     sed -e 's/<[^>]*>//g' -e 's/  */ /g' -e 's/^ *//g' -e 's/^  *$//' <"$i" | grep -v '^$' 
10     echo "----------------------------------------"
11   done
12 }
13
14