Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- USER=your_user
- PASS=your_pass
- FILE="/tmp/moneylog.html"
- wget https://$USER:$PASS@pay.pu.ru/cgi-bin/usersup/moneylog --no-check-certificate -O $FILE
- FIRSTLINE=$( cat $FILE | grep \<tr\>\<td | head -n 1)
- SUM=$( expr match "$FIRSTLINE" '.*\(>[0-9.]*</font>\)' )
- SUM=${SUM%%"</font>"}
- SUM=${SUM:1}
- echo $SUM
Advertisement
Add Comment
Please, Sign In to add comment