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

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation