Created
September 20, 2023 14:42
-
-
Save ahobson/ed3ca650fc0ebd401baf01def28debe5 to your computer and use it in GitHub Desktop.
prepend timestamps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl -p | |
use POSIX strftime; | |
$|=1; | |
select((select(STDERR), $| = 1)[0]); | |
print strftime "[%Y-%m-%d %H:%M:%S] ", localtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment