-n 行号
‘机构未授权’ 为需要查找的信息
spring.log 为文件名
grep -n '机构未授权' spring.log
spring.log 为你需要查看的文件
+48959 为你需要开始查看的行号
-n200为从48959开始查看200行
cat spring.log | tail -n +48959 | head -n 200
-n 行号
‘机构未授权’ 为需要查找的信息
spring.log 为文件名
grep -n '机构未授权' spring.log
spring.log 为你需要查看的文件
+48959 为你需要开始查看的行号
-n200为从48959开始查看200行
cat spring.log | tail -n +48959 | head -n 200