- 论坛徽章:
- 20
|
- [root@07 ~]# cat c
- The honeysuckle band played all night long for only $90.
- It was an evening of splendid music and company.
- Too bad the disco floor fell through at 23:00.
- The local nurse Miss P.Neave was in attendance.
- [root@07 ~]# sed "/company/a\Then suddenly it happened." c
- The honeysuckle band played all night long for only $90.
- It was an evening of splendid music and company.
- Then suddenly it happened.
- Too bad the disco floor fell through at 23:00.
- The local nurse Miss P.Neave was in attendance.
复制代码- [root@07 ~]# sed --version
- GNU sed version 4.1.5
- Copyright (C) 2003 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
- to the extent permitted by law.
复制代码 可以啊,你那sed是不是坏了?还是版本问题,不行的话把sed升级下
|
|