Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets   Hide Images

Rate this post by selecting a number. 1 is the worst and 5 is the best.

    (Worst)    1    2    3    4    5     (Best)

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jaffaa
Mudiripoyina Bewarse
Username: Jaffaa

Post Number: 23128
Registered: 03-2008
Posted From: 204.14.239.13

Rating: N/A
Votes: 0

Posted on Thursday, November 13, 2014 - 1:29 pm:   

i haven't tested it, but logic is something like this

#!/bin/bash

cd /tmp
mkdir downloads
cd downloads
x=1
while read link;
do
mkdir $x
wget -qO- -O ${x}.zip $link && unzip ${x}.zip -d $x
echo "------------------------------"
ls -lart $x/*.txt >> /tmp/final_out.log
echo "------------------------------"
x=x+1
done < /tmp/links.log

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration