[leglug-users] Some help... with bash scripting
Maxim
badran at gmail.com
Wed May 24 19:24:31 EDT 2006
This is my first try at bash scripting. It seams to do its job, but I still
want to add some features to make it more usefull like checking the date
format as it should be DD-MM-YY and so on ..... any hints on how to do that
============
#!/bin/bash
# newspaper.sh v0.1
# newspaper downloader
if [ -z "$1" ]; then
echo 'Insert date DD-MM-YY ex: 31-12-99'
exit
fi
D=$1
mkdir $D;
cd $D;
A=1;
while [ $A -lt 24 ];
do
wget http://www.almustaqbal.com/Issues/AsISPDF/$D/page$A.pdf;
((A+=1));
done
============
--
Maxim
msn: m at xim.uni.cc
skype: maxim_badran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.leglug.org/pipermail/leglug-users/attachments/20060525/4cf2cbf3/attachment.htm
More information about the leglug-users
mailing list