Skip to content

Instantly share code, notes, and snippets.

@sharuzzaman
Last active November 26, 2019 03:13
Show Gist options
  • Select an option

  • Save sharuzzaman/9da402680df7f107dafb96d403e0f95a to your computer and use it in GitHub Desktop.

Select an option

Save sharuzzaman/9da402680df7f107dafb96d403e0f95a to your computer and use it in GitHub Desktop.
Quick bash script to get the solat time
#!/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