• psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago

        “Ed is the standard text editor.”

        Ed, the greatest WYGIWYG editor of all.

        ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!

        When I use an editor, I don’t want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a “viitor”. Not a “emacsitor”. Those aren’t even WORDS!!! ED! ED! ED IS THE STANDARD!!!

        TEXT EDITOR.

        When IBM, in its ever-present omnipotence, needed to base their “edlin” on a UNIX standard, did they mimic vi? No. Emacs? Surely you jest. They chose the most karmic editor of all. The standard.

        Ed is for those who can remember what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED “VISUAL” EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!

        /Quote

        Nb WYGIWYG* is a play on WYSIWYG†

        *What You Get Is What You Get

        †What You See Is What You Get

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    31
    ·
    5 months ago

    Somehow, despite being the standard it doesn’t come installed by default in any distro I’ve tried.

    They all insist you use sed… that bloated thing!

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      20
      ·
      5 months ago

      ed and sed arre different things. One edits files in place, interactively. The other edits streams i.e.batch processing.

      ed is the precursor to vi. Similar commands. It’s just you can only work on one line at a time.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        18
        ·
        5 months ago

        One edits files in place, interactively. The other edits streams i.e.batch processing.

        You want sed -i -f -

        ed is also the precursor of sed, and of some other dozen of commands.

        • wewbull@feddit.uk
          link
          fedilink
          English
          arrow-up
          5
          ·
          5 months ago

          Yes ed begat sed, but sed works differently. It didn’t replace ed. It did a different job.

          Ed loads the file into a buffer which you edit in a random access fashion and then save. Sed collects a list of commands and then streams the file line by line, executing the commands as they match lines. In your example nothing happens until you’ve entered the whole editing script.

    • io@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      12
      ·
      5 months ago

      sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But it is sed’s ability to filter text in a pipeline which particularly distinguishes it from other types of editors.

      I love the way they are selling this

      https://www.gnu.org/software/sed/manual/sed.html

  • sga@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 months ago

    i concede, you are too chad for me to even be in same plane of existence.