如何在ed中写一个文字点?


8

将仅包含一行的行写入其中的正确方法.ed什么?我想出的唯一方法是这样的:

a
.
s/^$/./

Answers:



1

稍微绕一下,但是使用shell重定向:

r !echo .
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.