Linux 怎么查看这些find -name mdlog -type f -exec ls -ltrsh + 文件最后5行的内容需要依次执行
要查看文件的最后5行内容,可以使用tail命令。在执行find命令时,可以将结果传递给tail命令来实现。
以下是一种可能的方法:
find . -name "md.log" -type f -exec tail -n 5 {} ;
原文地址: http://www.cveoy.top/t/topic/h8xi 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
要查看文件的最后5行内容,可以使用tail命令。在执行find命令时,可以将结果传递给tail命令来实现。
以下是一种可能的方法:
find . -name "md.log" -type f -exec tail -n 5 {} ;
原文地址: http://www.cveoy.top/t/topic/h8xi 著作权归作者所有。请勿转载和采集!