请问一个diff过滤器问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
月华如水2012
帖子: 14
注册时间: 2012-05-30 17:20

请问一个diff过滤器问题

#1

帖子 月华如水2012 » 2012-08-23 20:45

在我的文件夹下有两个文件,分别为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行?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 请问一个diff过滤器问题

#2

帖子 eexpress » 2012-08-23 20:51

man sed
● 鸣学
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 请问一个diff过滤器问题

#3

帖子 lilydjwg » 2012-08-23 21:56

是。
回复