Help for this page

Select Code to Download


  1. or download this
    $ tac /var/log/rsync.log | perl -lane 'if(/received/){ print "$F[0] $F
    +[1]"; exit }'
    # Update 2017-04-21: compacting that a little bit:
    $ tac /var/log/rsync.log | perl -lane 'if(/received/){print"@F[0,1]";e
    +xit}'
    
  2. or download this
    use warnings;
    use strict;
    ...
        }
    }
    $bw->close;
    
  3. or download this
    $ perl -lane '/received/ and $a="$F[0] $F[1]"}{print $a' /var/log/rsyn
    +c.log