Created
July 23, 2017 13:07
-
-
Save behroozam/3a568bf059a149485a2afbb03b08d450 to your computer and use it in GitHub Desktop.
read text file and call it with curl
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
while IFS= read -r line;do | |
fields=($(printf "%s" "$line"|cut -d' ' --output-delimiter=' ' -f1-)) | |
echo "http://127.0.0.1:5000/services/rest/zzz/subscribe-withactor?mobilenum="${fields[1]}"&service_id="${fields[2]}"&shortcode="${fields[0]}"&message=&actor=MO;" | |
done < yourfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment