Skip to content

Instantly share code, notes, and snippets.

@weiserr
Last active September 19, 2016 15:06
Show Gist options
  • Select an option

  • Save weiserr/a6b03e1f3d0ec6ad35bb to your computer and use it in GitHub Desktop.

Select an option

Save weiserr/a6b03e1f3d0ec6ad35bb to your computer and use it in GitHub Desktop.

Revisions

  1. weiserr revised this gist Sep 19, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion get-mails.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    curl -u $user:$password, -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://$stashurl/rest/api/1.0/admin/users?limit=500" | sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu
    curl -u $user:$password -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://$stashurl/rest/api/1.0/admin/users?limit=500" | sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu
  2. weiserr created this gist Nov 25, 2015.
    1 change: 1 addition & 0 deletions get-mails.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    curl -u $user:$password, -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://$stashurl/rest/api/1.0/admin/users?limit=500" | sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu