-- Dennis Peterson said the following on 9/25/07 7:00 PM: > 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()}' >
If you have the Solaris Software Companion bundle, you could always install SFWcoreu and get GNU date. By default it installs into /opt/sfw. Amos _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html