- 论坛徽章:
- 26
|
info sed 看到的,gnu的扩展 accepts two addresses.是什么意思,谁给个例子?
[code]
`r FILENAME'
As a GNU extension, this command accepts two addresses.
Queue the contents of FILENAME to be read and inserted into the
output stream at the end of the current cycle, or when the next
input line is read. Note that if FILENAME cannot be read, it is
treated as if it were an empty file, without any error indication.
As a GNU `sed' extension, the special value `/dev/stdin' is
supported for the file name, which reads the contents of the
standard input.
[code]
还有 sed&awk似乎有错哦,我正在看的是第二版的饭醉团伙修订版,说r是将文件的内容读入模式空间,按文档应该是输出到输出流吧? |
-
r.png
(33.52 KB, 下载次数: 28)
sed&awk原文
|