[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Download da lista ...
From: |
Marcelo Giovanni Dias |
Subject: |
Download da lista ... |
Date: |
Fri, 9 Apr 2004 02:06:44 -0300 |
User-agent: |
KMail/1.5.3 |
Para quem quer fazer o download do histórico da lista de shell script veja
este pequeno script que fiz, você deve informar qual é o número da ultima
menságem a ser baixada.
#! /bin/bash
##############################################
# Criado por Marcelo G. Dias
##############################################
i="1"
white [ "$i" -le "$1" ]
do
wget
http://br.groups.yahoo.com/group/shell-script/messages/"$i"?expand=1
i=`expr "$i" + 30`
[ "$i" -ge "$1" ] && i="$1"
done
novo="1"
for i in `ls`
do
if [ "$novo" -lt "10" ] ; then novo="0000$novo" ;
elif [ "$novo" -lt "100" ] ; then novo="000$novo" ;
elif [ "$novo" -lt "1000" ] ; then novo="00$novo" ;
elif [ "$novo" -lt "10000" ] ; then novo="0$novo" ; fi
html2text "$i" > "$novo".txt
done
rm -f *\?expand\=1
##############################################
# Fim dfo script
##############################################
---
\|||||/
(o o) *** Seja Livre e evite a pirataria use GNU/Linux ***
--( )-0ooo-------------------------------------------------------
| MARCELO GIOVANNI DIAS - WEBMASTER
| E-mail: address@hidden - Site : http://www.boletim.net
-----------------------------------------------------------------
- Download da lista ...,
Marcelo Giovanni Dias <=