|
发表于 2007-8-4 14:14:50
|
显示全部楼层
Post by l76862157
谢谢 sunnyseckt 了,在那个帖子里面找到解决方法了。
[root@localhost test]# sed -e '/^$/{
> $!N
> /^\n$/D
> }' abc
是这样写的~!
$!N这个是什么意思啊,这里没有看懂了
$ matches the last line, which means *don't* try to read in the next line after hitting the last line. Because that's EOF and there is not more data...  |
|