bash script

James Michael Fultz croooow at gmail.com
Thu Jan 28 17:20:42 UTC 2010


* Kaushal Shriyan <kaushalshriyan at gmail.com> [2010-01-28 22:00 +0530]:
> while read epoch mem; do d=$(date -d "@$epoch");echo "$d    $mem";done
> < enterprise-core-01.memusage >> ksks.txt
> 
> what does @$epoch means ?

The '@' tells date to interpret the time stamp as seconds since the
epoch.  It is documented in the info documentation but does not appear
to be in the manual page.

The following link provides further explanation:
<http://www.bash-hackers.org/wiki/doku.php/mirroring/bashfaq/070>




More information about the ubuntu-users mailing list