User Tools

Site Tools


ed_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ed_cheat_sheet [2021/03/25 20:56] – added pithy quote, organized peteyboyed_cheat_sheet [2024/09/04 18:53] (current) – – hc9
Line 1: Line 1:
 ====== ed Cheat Sheet ====== ====== ed Cheat Sheet ======
 +
 ed: ed:
 +
   * ed is a small, powerful, line-oriented, command-line-interfaced text editor. All editors frustrate, but ed often amazes while others disappoint.   * ed is a small, powerful, line-oriented, command-line-interfaced text editor. All editors frustrate, but ed often amazes while others disappoint.
-  * "If something goes wrong, ed is sometimes the only editor available. This is often the only time when it is used interactively." --from its [[wp>ed_(text_editor)| Wikipedia entry]] +  * If something goes wrong, ed is sometimes the only editor available. This is often the only time when it is used interactively.” – from its [[wp>ed_(text_editor)| Wikipedia entry]] 
-  * [[http://www.gnu.org/fun/jokes/ed.msg.html|ed, man! !man ed]] — ed is the standard text editor.+  * [[http://www.gnu.org/fun/jokes/ed.msg.html|ed, man! !man ed]] – ed is the standard text editor.
  
 ''man ed'' for more information. ''man ed'' for more information.
Line 27: Line 29:
 ===== Edit commands ===== ===== Edit commands =====
  
-| ''d'' | Delete. | ''s///re/////s///[g|//n//][p]'' | Substitute. |+| ''d'' | Delete. | ''s%%/%%//re//%%/%%//s//\\ /[g|//n//][p]'' | Substitute. |
 | ''m[//line//]'' | Move after //line//. | ''t[//line//]'' | Copy after //line//. | | ''m[//line//]'' | Move after //line//. | ''t[//line//]'' | Copy after //line//. |
 | ''(.,+)j'' | Join lines. | ''u'' | Undo.| | ''(.,+)j'' | Join lines. | ''u'' | Undo.|
Line 52: Line 54:
  
 ---- ----
 +
 [[http://sdf.org/?tutorials/ed|ed Cheat Sheet]] - traditional link (using [[wp>Revision_Control_System|RCS]]) [[http://sdf.org/?tutorials/ed|ed Cheat Sheet]] - traditional link (using [[wp>Revision_Control_System|RCS]])
  
ed_cheat_sheet.1616705809.txt.gz · Last modified: 2021/03/25 20:56 by peteyboy