Last active
November 26, 2019 03:13
-
-
Save sharuzzaman/9da402680df7f107dafb96d403e0f95a to your computer and use it in GitHub Desktop.
Quick bash script to get the solat time
This file contains hidden or 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 | |
| curl "https://www.e-solat.gov.my/index.php?r=esolatApi/TakwimSolat&period=today&zone=SGR01" 2>/dev/null| sed 's/,/,\n/g' | egrep 'imsak|fajr|syuruk|dhuhr|asr|maghrib|isha' | tr -dc '[:alnum:]\n:' | sed 's/:/ /' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment