Last active
July 6, 2016 19:39
-
-
Save acapps/6c8293d751fe0514587a to your computer and use it in GitHub Desktop.
Simple BASH script to loop through an input list.
This file contains hidden or 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 | |
input_list=`cat $1` | |
for i in $input_list | |
do | |
response=$(curl -s -X POST http://exampleurl.com/ -d parameter=$i) | |
echo $i::$response >> $1.log | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment