slitaz-tools rev 230

man: fix & filter
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 11 13:10:58 2008 +0000 (2008-07-11)
parents 5c0f59e46c0e
children addef667cbef
files tinyutils/man
line diff
     1.1 --- a/tinyutils/man	Fri Jul 11 11:15:47 2008 +0000
     1.2 +++ b/tinyutils/man	Fri Jul 11 13:10:58 2008 +0000
     1.3 @@ -7,4 +7,4 @@
     1.4  TOPIC=$1
     1.5  wget -O - "http://man.he.net/?topic=$TOPIC&section=$SECTION" 2> /dev/null | \
     1.6  awk 'BEGIN { s=0 } /<PRE>/ { s=1 } { if (s) print } /<\/PRE>/ { s=0 }' | \
     1.7 -sed -e 's/<[^>]*>//g' -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&amp;/&/g' | less
     1.8 +sed -e 's/<[^>]*>//g' -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&amp;/\&/g' | less