Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the ed command of linux for text editing

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux ed command for text editing, has a certain reference value, friends in need can refer to. Let's take a look at it with me.

Ed is the simplest text editor in Linux, which can only edit one line at a time instead of full-screen operation.

The ed command is not a commonly used command, and the vi instruction is commonly used. But the ed text editor is useful for editing large files or for text editing in shell scripting programs.

Syntax format: ed [parameters]

Common parameters:

-G provides back-compatible function-p specifies that ed does not perform the check function when opening the file in the prompt character of command mode-s-help displays help information-version displays version information

Reference example

The following is a complete instance resolution of Linux ed:

The above [root@linuxcool ~] # ed is the details of text editing using linux's ed command. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report