This commit is contained in:
Shihaam Abdul Rahman
2021-09-19 20:14:44 +05:00
parent f22bbcdd46
commit b9bb5db4e2
4 changed files with 84 additions and 22 deletions

12
readaccounts.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
NUMBEROFACCOUNTS=$(cat .env | grep BML_ACCOUNTID | cut --complement -d "'" -f 1 | cut -f1 -d "'" | wc -l)
i=0;
for account in `cat .env | grep BML_ACCOUNTID | cut --complement -d "'" -f 1 | cut -f1 -d "'"`
do
accountid[$i]=$account;
i=$(($i+1));
SELECT=$(cat .env | grep BML_ACCOUNTID | cut --complement -d "'" -f 1 | cut -f1 -d "'" | head -n$i | tail -n1)
echo $SELECT Selected
sleep 1
i=0
done