Shell script using curl to loop through urls
root@vmi977996:/home/shell/Downloads# cat bum2.sh
#!/bin/bash
url=https://youtubego.net/vd.php?q=
while read query
do
content=$(curl "{$url}${query}")
echo $query
echo $content >> output.txt
done < query.txt
root@vmi977996:/home/shell/Downloads# cat query.txt
zebra-abhi
tommy-bum
Comments
Post a Comment