- 论坛徽章:
- 0
|
本帖最后由 zbhdpx 于 2010-12-28 10:12 编辑
以下在csh下边试
%nl /etc/passwd | sed '2a\ drink tea'
sed: 1: "2a\ drink tea": extra characters after \ at the end of a command
我加了也是这样,刚又试了一下,可能我用的是csh,
在sh下
# nl /etc/passwd | sed '2a\ drink tea'
sed: 1: "2a\ drink tea": extra characters after \ at the end of a command
# cat test.txt |sed '2c\
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> '
HORSEFEATHERS SOFTWARE PRODUCT BULLETIN
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
of Horsefeathers software products -- Horsefeathers Business
BASIC, BASIC Librarian, and LIDO. These software products can
fill your requirements for powerful, sophisticated,
general-purpose business software providing you with a base for
software customization or development.
这样是正常的, |
|