Why does tail -f not play well with xargs?
This command works as expected, I see a block of text:
tail /var/log/auth.log|xargs echo
But this command shows me nothing:
tail -f /var/log/auth.log|xargs echo
Both tail
and tail -f
have output. One might think it is line terminators, but setting both to null did not work:
tail -z -f /var/log/auth.log|xargs -0 echo