Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of the Linux ed command

Shulou Source: shulou.com Published: 2022-06-01 19:17:28 09月26日 Update

This article introduces the relevant knowledge of "what is the use of the Linux ed command". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Ed single-line plain text editor

Syntax ed (options) (parameters) option A # switches to input mode and enters new content after the last line of the file; C # switches to input mode and replaces the last line with input; I # switches to input mode and adds a new blank line before the current line to enter content; d # is used to delete the last line of text N # is used to display the line number and contents of the last line; w #: a given file name saves the file currently being edited; Q # exits the ed editor. -G or-- traditional: provide compatible functions;-p: specify the prompt character of ed in command mode;-SMagneWhile or-- silent: do not perform the check function when opening files;-- help: display help;-- version: display version information. Parameter file: the file to be edited.

This is the end of the content of "how to use the Linux ed command". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Content file input one line mode switch usage command method function parameter text more knowledge editor utility learning next information dilemma Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Xiaomi Apple Shulou Information Redmi