Skip to content

Instantly share code, notes, and snippets.

@acapps
Last active July 6, 2016 19:39
Show Gist options
  • Save acapps/6c8293d751fe0514587a to your computer and use it in GitHub Desktop.
Save acapps/6c8293d751fe0514587a to your computer and use it in GitHub Desktop.
Simple BASH script to loop through an input list.
#! /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