Created
July 6, 2016 13:36
-
-
Save ivanhuay/ff7198a2cd1f6cd35a9be8cee297b15d to your computer and use it in GitHub Desktop.
bash script for execute curl to each file line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
if [ -f $FILE ]; | |
then | |
while read line | |
do | |
resp=`curl -s $line` | |
echo "$line $resp" | |
done <"$FILE" | |
else | |
echo "File $FILE does not exist." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment