【Linux】Linux 中使用grep获取指定字符串结尾 测试文件是tmp.txt, 指定结尾字符串是'_hist' cat tmp.txt | grep -E 'hist$' 或者 grep -E '_hist$' sar_hist_table_list.txt