- 論壇徽章:
- 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.
這樣是正常的, |
|