suggested addition to 'date'

Dag-Erling Smørgrav des at des.no
Mon Aug 14 09:35:34 UTC 2006


Julian Elischer <julian at elischer.org> writes:
> At various times I've wanted to add timestamps to logfiles as they
> are generated..

while read line ; do echo $(date '+%Y-%m-%d %H:%M:%S') "$line" ; done

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list