tailf bosent.log | sed '/Start Apache Tomcat/q'
sed命令查找日志文件对应字符串Start Apache Tomcat, 找到匹配字符串后退出,q代表退出。