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

What is the use of the Linux ed command

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

Share

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

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!

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

Development

Wechat

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

12
Report