Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created September 22, 2013 19:00
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 cirrusUK/6662755 to your computer and use it in GitHub Desktop.
Save cirrusUK/6662755 to your computer and use it in GitHub Desktop.
simple bash script to be notified of date of current OS install.
#!/bin/bash
AGE=$(sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:')
notify-send -i ~/.icons/info.svg "$AGE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment