e.g grep -n ‘xxxx’ financial-gateway-20220510-0.log
cat + grep查询关键字位置cat -n financial-gateway-20220510-0.log |grep ‘xxxx’
-n显示行数
less 文件
-N 显示每行的行号
q 和 q!退出
/xxxxx 向后搜索
?xxxxx 向前搜索
g 跳到文件的第 1 行
G 跳到文件的最后 1 行
cat -n financial-gateway-20220510-0.log | tail -n +100 | head -n 10



