[uanog] shell scripting
Volodymyr Litovka
doka.ua at gmail.com
Tue Jan 31 13:20:13 EET 2017
Оно? -
http://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe
On 1/31/17 1:17 PM, Taras Heychenko wrote:
> Hi!
> Возник вопрос по subj.
>
> Если я набираю в командой строке:
> root at academ:~>tail -f /var/log/messages | grep short
> Jan 31 09:54:26 academ kernel: arp: short packet received on re0
> Jan 31 10:11:10 academ kernel: arp: short packet received on re0
> Jan 31 10:50:34 academ kernel: arp: short packet received on re0
> Jan 31 11:34:18 academ kernel: arp: short packet received on re0
> ^C
> То получаю вывод найденных строк. Но если я с ними хочу чего-нибудь
> дальше сделать, то
>
> root at academ:~>tail -f /var/log/messages | grep short | awk '{print $1}'
> ^C
>
> ничего не происходит. Что я делаю не так?
>
> --
> Taras Heychenko
> tasic at academ.kiev.ua
>
>
>
>
> _______________________________________________
> uanog mailing list
> uanog at uanog.kiev.ua
> http://mailman.uanog.kiev.ua/mailman/listinfo/uanog
--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uanog.kiev.ua/pipermail/uanog/attachments/20170131/960d5522/attachment.html>
More information about the uanog
mailing list