2 ms·
My BitBar script displays the Unix epoch, comma separated: { 1,616,198,970 } Script is 2 lines: EPOCH=$(/bin/date +%s | /usr/local/opt/gnu-sed/libexe
by bloopernova 6y ago
My BitBar script displays the Unix epoch, comma separated:
{ 1,616,198,970 }
Script is 2 lines:
EPOCH=$(/bin/date +%s | /usr/local/opt/gnu-sed/libexec/gnubin/sed ':a;s/\B[0-9]\{3\}\>/,&/;ta')
echo "{" "${EPOCH}" "}"