Search Results

Search: Posts Made By: tonispa
8,992
Posted By Aia
perl -nle '/(\d+)$/ and print "$_ -o $1.html -a...
perl -nle '/(\d+)$/ and print "$_ -o $1.html -a $1.log"' url.list | xargs -I {} -P 10 curl -r 0-50000 -L "{}"
8,992
Posted By Chubler_XL
How about something like this: #!/bin/bash ...
How about something like this:

#!/bin/bash
fetch_url () {
URL=$@
filename=${URL##*=}

curl -r 0-50000 -L "$URL" -o ${filename}.html -a ${filename}.log
}

export -f fetch_url
...
8,992
Posted By RudiC
Did you try reading that file:while IFS="?&="...
Did you try reading that file:while IFS="?&=" read URL X X X X X FN REST; do echo $FN, $URL; done <url.list
1, http://domain.com/teste.php
2, http://domain.com/teste.php
, ...
30000,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy