Skip to content

Commit d2ca8a3

Browse files
committed
make lists unique
1 parent a6d1217 commit d2ca8a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

archive/server_setup/acctStatusChecks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ here="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
55
cd $here
66

77
sudo ls -1 /var/sftp | egrep -v "test|logup" > moved.txt
8-
grep batchs /home/ubuntu/prod/data/reports/stationlogins.txt | cut -c 42-61 | sed 's/ //g' | sort > switched.txt
9-
grep ukmonh /home/ubuntu/prod/data/reports/stationlogins.txt | cut -c 42-61 | sed 's/ //g' | sort > pending.txt
8+
grep batchs /home/ubuntu/prod/data/reports/stationlogins.txt | cut -c 42-61 | sed 's/ //g' | uniq | sort > switched.txt
9+
grep ukmonh /home/ubuntu/prod/data/reports/stationlogins.txt | cut -c 42-61 | sed 's/ //g' | uniq | sort > pending.txt
1010

1111
ssh ukmonhelper2 "~/prod/server_setup/get-nbd.sh" | while read i ; do echo $i | awk -F"/" '{print $4}' ; done > not-being-done.txt
1212
ssh ukmonhelper2 "~/prod/server_setup/get-all.sh" | while read i ; do echo $i | awk -F"/" '{print $4}' ; done > all-accounts.txt

0 commit comments

Comments
 (0)