source:
misc/timestamp@
396
Last change on this file since 396 was 287, checked in by , 14 years ago | |
---|---|
|
|
File size: 138 bytes |
Line | |
---|---|
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.