in reply to Re: using perl to format tail -f
in thread using perl to format tail -f
Or to a script:
Usage:#!/usr/bin/env perl use warnings; use strict; while(<>) { #... do something with the latest line, $_ }
tail -f /var/log/apache2/access.log | myscript.pl
|
---|
In Section
Seekers of Perl Wisdom