Get the latest tech news

S/Sed/Ed


ed is a stupid simple text editor. sed is a nice streaming text processing tool. Why would one even want to use ed for anything, let alone for text processing if there's sed?

This post starts with holding a grudge: Posix regular expressions are extremely hard to get wrong? One can overwrite files, re-read them, run shell commands, move lines around, and undo anything. y command for transcription My ed script for Armenian transliteration is 30 lines longer than respective sed one.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of S/Sed/Ed

S/Sed/Ed