coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date enhancement - filter to preface each line of input with timestamp


From: Evan Rempel
Subject: date enhancement - filter to preface each line of input with timestamp
Date: Sun, 1 Nov 2015 14:57:48 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

There is a lot of discussion on the net about prefacing a timestamp to every line of a text stream. There are solutions with awk, perl, python and bash. coreutils even provides one using perl. This seems to be a very heavy tool to do something that date already does all of the hard work for.

Does it make sense to add an option -p --prefix to make date prefix every line of stdin with a date/time stamp?

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]