Skip to content

Instantly share code, notes, and snippets.

@jakevossen5
Created October 31, 2018 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakevossen5/8719e3ee9beb2b1a9c336a38be9ad348 to your computer and use it in GitHub Desktop.
Save jakevossen5/8719e3ee9beb2b1a9c336a38be9ad348 to your computer and use it in GitHub Desktop.
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