write to a file after piping output from tail -f through to grep

前端 未结 4 639
孤独总比滥情好
孤独总比滥情好 2021-01-05 15:19

I\'m looking to write to a file after piping output from tail -f through to grep. Say,write to a file \"temp\" for all lines with \"Playing:\" within in error_log \"FreeSwit

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 16:08

    Did you put the file name after the >?

    tail -f /var/lof/freeswitch/freeswitch.log | grep "Playing:" > temp
    

提交回复
热议问题