Skip to content

Instantly share code, notes, and snippets.

@anir0y
Created March 29, 2020 23:12
Show Gist options
  • Save anir0y/18b4aa813e8d694f95dcea750444bf85 to your computer and use it in GitHub Desktop.
Save anir0y/18b4aa813e8d694f95dcea750444bf85 to your computer and use it in GitHub Desktop.
#!/bin/bash
[ "$(stat -c %y corona.raw | cut -d ' ' -f1)" != "$(date '+%y-%m-%d')" ] && curl -s https://corona-stats.online/in | grep In > corona.raw
echo "Covid-19 India Stats"
cat corona.raw | sed "s/\s*//g ; s/║//g ;s/▲//g; s/│/;/g"| awk -F';' '{print "Total Case: " $3 "(New "$4") Death " $5 " ("$7"%)"}'
lockdown='20-04-14'
date="$(date '+%y-%m-%d')"
if [ "$date != $Lockdown " ];
then
echo "😷 Lockdown! Stay the fuck in your HOME"
echo "Dumb Ass 🍑"
else
echo "☺️ Free to Roaming!!!"
fi
sleep 3
clear
bash corona_slang.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment