当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 请问一个diff过滤器问题
帖子发表于 : 2012-08-23 20:45 

注册: 2012-05-30 17:20
帖子: 14
送出感谢: 0 次
接收感谢: 0 次
在我的文件夹下有两个文件,分别为bigone,data,两个文件的内容分别如下:
1、bigone
this is line1
this is line2
this is line3
this is line4
this is line5this is line1
this is line2
this is line3
this is line4
this is line5
2、data
this is line1
this is line2
this is line3
this is line4
this is line5
使用diff bigone data后输出的结果为
5,8d4
< this is line5this is line1
< this is line2
< this is line3
< this is line4
请问这里的5,8d4是否是表示删除地一个文件的第五至第八行共计4行?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 请问一个diff过滤器问题
帖子发表于 : 2012-08-23 20:51 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
man sed


_________________
● 鸣学


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 请问一个diff过滤器问题
帖子发表于 : 2012-08-23 21:56 
头像

注册: 2009-04-11 23:46
帖子: 4130
系统: Arch Linux
送出感谢: 11
接收感谢: 124
是。


_________________
我的博客 https://blog.lilydjwg.me/
提问的智慧
Arch Linux 中文论坛

我的vimrc: https://git.io/vimrc


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译