grep -m1 txnid log_filename.log
grep -m1 txnid log_filename.log | sed “s/abc/ddd/” 替换一个
grep -m1 txnid log_filename.log | sed “s/abc/ddd/” 替换所有
End of the universe is coding.
grep -m1 txnid log_filename.log
grep -m1 txnid log_filename.log | sed “s/abc/ddd/” 替换一个
grep -m1 txnid log_filename.log | sed “s/abc/ddd/” 替换所有