从grep到awk的管道不起作用
我正在尝试grep正在进行tail的文件日志,并n从一行中获取第一个单词。示例文件: $ cat > test.txt <<EOL Beam goes blah John goes hey Beam goes what? John goes forget it Beam goes okay Beam goes bye EOL ^C 现在,如果我做一个tail: $ tail -f test.txt Beam goes blah John goes hey Beam goes what? John goes forget it Beam goes okay Beam goes …