Skip to content

Instantly share code, notes, and snippets.

View reegnz's full-sized avatar

Zoltán Reegn reegnz

View GitHub Profile
@reegnz
reegnz / timestamp.sh
Created May 10, 2018 14:58 — forked from johnmurch/timestamp.sh
Timestamp output options
#! /bin/bash
# An overly obvious reference for most commonly requested bash timestamps
# Now all you Mac fags can stop pestering me.
cat << EOD
Format/result | Command | Output
------------------------------+----------------------------+------------------------------
YY-MM-DD_hh:mm:ss | date +%F_%T | $(date +%F_%T)
YYMMDD_hhmmss | date +%Y%m%d_%H%M%S | $(date +%Y%m%d_%H%M%S)