Peter Blair

unixtime bash function

An IRC snippet from $WORK’s main IRC channel.


13:25 < pete> brendan: unixtime... wtf?
13:25 < pete> alias unixtime='perl -e "print scalar gmtime $ARGV[0] , \"\n\""'
13:25 < brendan> oh, that's the old one
13:25 < brendan> function unixtime {
13:25 < brendan> TZ=UTC date -d @$1
13:25 < brendan> }


Categorised as: UNIX


Comments are closed.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes