Skip to content

Instantly share code, notes, and snippets.

View tomthorogood's full-sized avatar
🎸

Tom Thorogood tomthorogood

🎸
View GitHub Profile
@jdiverp
jdiverp / reset_identity_tests.sh
Last active August 12, 2020 18:58
Retest script for Identity.UW
#!/bin/bash
#https://gist.github.com/jdiverp/9d27e77aba4c9d0e2b5a11ddbe0f3748
MU='/usr/local/etc/mu -c /dd01/pass/.cconfig -h mango-eval.u.washington.edu -v -y'
clear_netids () {
REG=$1
echo Looking at NetID for RegID: $REG
NETID=`echo "seluwn reg=$REG" | $MU | sed -r 's/[[:alnum:]_]+=/\n&/g ; s/[()]//g'|egrep '^uwnetid=' |cut -d "=" -f 2`
echo Deleting NETID\(s\): $NETID
STAT=`for ids in $NETID; do echo "deluwn uwnetid=$ids -force" |$MU; done`