Guest User

CalcVoterData.sh

a guest
Nov 12th, 2020
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. while read state TB TE BT BE EB ET RTE RTB RBE RBT RET REB
  4. do
  5.     let TRUMP=BT+ET-TB-TE
  6.     let BIDEN=TB+EB-BT-BE
  7.     let ERD=BE+TE-ET-EB
  8.     let RTRUMP=RBT+RET-RTB-RTE
  9.     let RBIDEN=RTB+REB-RBT-RBE
  10.     let RERD=RBE+RTE-RET-REB
  11.     printf "$state:
  12.             Trump: $TRUMP
  13.             Biden: $BIDEN
  14.             3rd: $ERD
  15.     reverse:
  16.             Trump: $RTRUMP
  17.             Biden: $RBIDEN
  18.             3rd: $RERD
  19. "
  20. done < "VoterChangeData.txt"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×