Jan-Pieter Cornet wrote:

> 
> So, TIMTOTDI squared (look ma', no perl!). This does the same as
> date +%s too:
> 
>     echo|awk '{print systime()}'
> 

But not in Solaris which is where the OP's original hack was born. You 
need gawk:

echo|gawk '{print systime()}'

My favorite absurd method in Solaris is:

truss date 2>&1 |awk '/time/ {print $NF}'

dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to