Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the ed command of linux for text editing

Shulou Source: shulou.com Published: 2022-06-02 19:49:56 11月11日 Update

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!

Tags: Commands text functions information content parameters examples commonly used files programs references lines values characters that is screens instructions ways more useful Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology Docker macOS NVidia