head tail diff -c fff hhh 前5行 后5行 区别 动态显示文本最新信息: $tail -f crawler.log

head tail diff -c fff hhh 前5行 后5行 区别 动态显示文本最新信息: $tail -f crawler.log,第1张

概述  显示文件第一行: $head -1 filename 显示文件倒数第五行: $tail -5 filename ]# tail -5 test.py option=sys.argv[1] main(option)   [[email protected] graphics-20180208]# head -5 test.py #!/usr/bin/env python # -*- codi

 

显示文件第一行:

$head -1 filename

显示文件倒数第五行:

$tail -5 filename

]# tail -5 test.py
option=sys.argv[1]
main(option)

 

[[email protected] graphics-20180208]# head -5 test.py
#!/usr/bin/env python
# -*- Coding:utf-8 -*-
import os
import sys
import string
#

 

###################################

# cat kkk
一、工具说明:
1.root用户进入测试项目文件夹下执行
sh run.sh [tool_name]
example: sh run.sh x11perf
sh run.sh all
2.测试日志和结果目录
测试状态文件:./state.txt
测试结果目录:./results
测试日志路径:./log

[[email protected] yixuan-1010]# cat hhh
一、工具说明:

1.root用户进入测试项目文件夹下执行
sh run.sh [tool_name]
example: sh run.sh x11perf
sh run.sh all
2.测试日志和结果目录
测试状态文件:./state.txt
测试结果目录:./results
测试日志路径:./log

 ###########

hhh的第二行增加了一行空行

########

# diff -c fff hhh
*** fff 2019-10-10 20:38:38.449893337 +0800
--- hhh 2019-10-10 20:40:52.448595622 +0800
***************
*** 1,4 ****
--- 1,5 ----
一、工具说明:
+
1.root用户进入测试项目文件夹下执行
sh run.sh [tool_name]
example: sh run.sh x11perf

 

#######

动态显示文本最新信息:

$tail -f crawler.log
总结

以上是内存溢出为你收集整理的head tail diff -c fff hhh 前5行 后5行 区别 动态显示文本最新信息: $tail -f crawler.log全部内容,希望文章能够帮你解决head tail diff -c fff hhh 前5行 后5行 区别 动态显示文本最新信息: $tail -f crawler.log所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1210504.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存