This commit is contained in:
sankalp committed 2023-04-24 15:41:27 +05:45
1 parent 0b17aa140b
commit dde4ef218a
136 files changed
+9796

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
weather=$(curl -s wttr.in/Kohalpur?format=3)
if [ $(echo "$weather" | grep -E "(Unknown|curl|HTML)" | wc -l) -gt 0 ]; then
echo "WEATHER UNAVAILABLE"
else
echo "$weather" | awk '{print $2" "$3}'
fi