Created
March 29, 2020 23:12
-
-
Save anir0y/18b4aa813e8d694f95dcea750444bf85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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