classify-users: determine type of Athena accounts
[user/alex/software/my-snippets.git] / update-officers
1 #!/bin/bash
2 # Alex Dehnert
3
4 officer_list=$1
5
6 officer_lists=$(blanche $officer_list | cut -d : -f 2-)
7
8 echo $officer_lists
9
10 for officer in $officer_lists; do
11     officers=$(blanche $officer)
12     echo List $officer: $officers
13     read -p "Who should be punted? " -a punt
14     for apunt in ${punt[@]}; do
15         blanche $officer -d $apunt
16     done
17     read -p "Who should be added? " -a addee
18     for aaddee in ${addee[@]}; do
19         blanche $officer -a $aaddee
20     done
21     echo New list: $(blanche $officer)
22     echo
23 done