#!/bin/bash pivx-cli listaddressgroupings | grep \" | cut -d \" -f2 | awk /./ | grep -v MN1 > tmp for i in `cat tmp` ; do DVALUE=`curl --silent http://www.presstab.pw/phpexplorer/PIVX/address.php?address=$i | grep -o 'Minted.*' | cut -d '>' -f 4 | cut -d '<' -f 1` VALUE=${DVALUE%.*} if [ $VALUE -ne 0 ]; then echo "$i $DVALUE" fi done