前面任意字符+固定字符+任意字符+固定字符匹配 grep -n 'SfRechargeGiftBagActivity/add.*用户行为日志记录545' 20191010.log .:匹配任意字符 *:匹配前面n次,知道遇到后面的固定字符串