mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
comment each regex
This commit is contained in:
parent
90a7b74f9f
commit
3120890148
1 changed files with 5 additions and 5 deletions
|
@ -22,10 +22,10 @@
|
|||
$/ = "\n\n";
|
||||
while (<STDIN>) {
|
||||
$msg = $_;
|
||||
$msg =~ s/\[[^,]*, //;
|
||||
$msg =~ s/ \] /: /;
|
||||
$msg =~ s/\s+/ /g;
|
||||
$msg =~ s/\s+$//g;
|
||||
$msg =~ s/^\s+//g;
|
||||
$msg =~ s/\[[^,]*, //; # strip the leading "[timestamp, "
|
||||
$msg =~ s/ \] /: /; # replace the " ] " following the indicator name, with ":"
|
||||
$msg =~ s/\s+/ /g; # collapse multi-whitespace into one
|
||||
$msg =~ s/\s+$//g; # strip trailing whitespace
|
||||
$msg =~ s/^\s+//g; # strip leading whitespace
|
||||
system("/usr/bin/screen", "-X", "at", "0", "echo", "[$msg]");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue