Skip to content

Instantly share code, notes, and snippets.

@ahobson
Created September 20, 2023 14:42
Show Gist options
  • Save ahobson/ed3ca650fc0ebd401baf01def28debe5 to your computer and use it in GitHub Desktop.
Save ahobson/ed3ca650fc0ebd401baf01def28debe5 to your computer and use it in GitHub Desktop.
prepend timestamps
#!/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