source:
misc/timestamp@
354
Last change on this file since 354 was 287, checked in by , 14 years ago | |
---|---|
|
|
File size: 138 bytes |
Rev | Line | |
---|---|---|
[287] | 1 | #!/bin/sh |
2 | # | |
3 | # Prepend your (log) lines with a timestamp | |
4 | # | |
5 | PREFIX=${1-"[%H:%M:%S]"} | |
6 | while read line | |
7 | do | |
8 | echo `date "+$PREFIX"` $line | |
9 | done |
Note:
See TracBrowser
for help on using the repository browser.