Small hack for adding a timestamp to incoming lines

This commit is contained in:
adamdunkels 2007-11-12 11:48:49 +00:00
parent b51977a693
commit 56d1013408

3
tools/timestamp Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# We run perl through a shell to avoid having to hard-code the path to perl
perl -e '$|=1; while(<>) {print time . " $_";}'