1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Clog has some basic features, for example, it can prepend timestamps to text:
$ head -5 hamlet | clog --date
2013-04-11 FRANCISCO at his post. Enter to him BERNARDO
2013-04-11 BERNARDO Whos there?
2013-04-11 FRANCISCO Nay, answer me: stand, and unfold yourself.
2013-04-11 BERNARDO Long live the king.
2013-04-11 FRANCISCO Bernardo?
$ head -5 hamlet | clog --time
21:20:17 FRANCISCO at his post. Enter to him BERNARDO
21:20:17 BERNARDO Whos there?
21:20:17 FRANCISCO Nay, answer me: stand, and unfold yourself.
21:20:17 BERNARDO Long live the king.
21:20:17 FRANCISCO Bernardo?
$ head -5 hamlet | clog --date --time
2013-04-11 21:20:22 FRANCISCO at his post. Enter to him BERNARDO
2013-04-11 21:20:22 BERNARDO Whos there?
2013-04-11 21:20:22 FRANCISCO Nay, answer me: stand, and unfold yourself.
2013-04-11 21:20:22 BERNARDO Long live the king.
2013-04-11 21:20:22 FRANCISCO Bernardo?
|