Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Seconds left bash script
#!/bin/bash
# This is a simple bash script displays a countdown to a specific time in the menu bar (combined with an app like bit bar)
END=1683612000
CUR=$(date +%s)
num=$(echo $END - $CUR | bc)
echo $num
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.