BASH 106
Script for charting US COVID19 Data By pagetelegram on 29th July 2021 12:52:17 AM
  1. #!/bin/bash
  2. # Usage: digcp [file.csv]
  4. cat $1 > us.dat
  5. tell=us.dat
  6. Now=$(date)
  7. three=328200000
  8. awk -F"," 'NR%2{p=$2;next}{print ($2-p)/$three}' $tell | sed "s/-//" > casespop.dat
  10. gnuplot -p << EOF
  11. #set autoscale
  12. set xrange [0:350]
  13. set yrange [0:150]
  14. set style line 1 lt 1 lw 3 pt 3 linecolor rgb "red"
  15. set xlabel "Days, Rendered on $Now"
  16. set ylabel "Δ/pop"
  17. set title "Cases Δ/population of $three in USA by Page Telegram"
  18. set term png
  19. set output "$1.png"
  20. plot "casespop.dat"  # using 1:2 w points title "cases"
  21. pause -1
  22. EOF

Bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

This bin is created for anyone to paste text related to anything of public interest or letters to public officials. Anything else posted that is not a public interest matter may be deleted. If you would like such letter to be faxed to Congress, please refer to services offered at
Raw Paste

Login or Register to edit or fork this paste. It's free.