Re: log wiever

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Uttered Alexander Dalloz <alexander.dalloz@xxxxxxxxxxxxxxxx>, spake thus:

> tail -f $LOGFILE | grep "$EXPRESSION"
> 
> This does not work, you can't combine tail -f and grep.

Sure you can.  However, grep(1) is buffering the line, so you may be
being fooled.  Turn this off by using:

	tail -f $LOGFILE | grep --line-buffered "$EXPRESSION"

No huhu.

Attachment: pgpU585wDXkN9.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux