root@u1804:~# sed --version
sed (GNU sed) 4.5
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.
root@u1804:~#
Run Code Online (Sandbox Code Playgroud)
我是 sed 的新手,我根据我的理解创建了下面的 sed 工作流程(如果您发现任何错误,请纠正我)。
因此,模式空间的默认自动打印似乎总是在末尾包含换行符。我的问题是,willp …
sed ×1