Skip to content

Instantly share code, notes, and snippets.

@georgeOsdDev
Created August 21, 2012 10:55
Show Gist options
  • Save georgeOsdDev/3414492 to your computer and use it in GitHub Desktop.
Save georgeOsdDev/3414492 to your computer and use it in GitHub Desktop.
show time on vmstat
#!/usr/bin/env perl
use POSIX 'strftime';
while(<>){
print strftime('%Y/%m/%d %H:%M:%S',localtime) , $_ ;
}
#usage
#vmstat -5 | perl vmstat_date.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment