---trxwww
#!/bin/sh
FILE0=`mktemp`
FILE1=`mktemp`
echo $FILE0
wget -O $FILE0 $1
enconv $FILE0
sed -i 's/</\n</g' $FILE0
sed -i 's/">/">\n/g' $FILE0
sed -i 's/>/>\n/g' $FILE0
grep -E "http" $FILE0 >> $FILE1
grep -E "ftp" $FILE0 >> $FILE1
sed -i 's/^.*http/http/g' $FILE1
sed -i 's/^.*ftp/ftp/g' $FILE1
sed -i 's/">//g' $FILE1
sed -i 's/>.*$//g' $FILE1
sed -i 's/"\ .*$//g' $FILE1
sed -i 's/DOCTYPE//g' $FILE1
sed -i '/<.*>/d' $FILE0
sed -i '/^$/d' $FILE0
cat $FILE0 >> $FILE1
cat $FILE1
rm $FILE0 $FILE1
---
trxwww URL > file - получить в файл
trxwww URL | less - посмотреть страницу