So, I need to run below curl multiple times to get a list of names for certain teams. Every time I have to put a TeamName to get a list of users. I already have a list of the team names in a .txt
file. I was wondering if there is a way to loop with all the list of team names from the .txt
and output it to the file.
Like using for loop in bash, but doesn't need to use for loop anything that will provide me with the list of users for the given teams' names.
for ((i=1;i<=10;i++)); do curl
curl -X GET 'https://api.opsgenie.com/v2/teams/TeamName?identifierType=name' --header 'Authorization: GenieKey abcdefdh'|python -m json.tool | grep -E username|role|name