• 0 Posts
  • 1.06K Comments
Joined 2 年前
cake
Cake day: 2023年6月22日

help-circle
  • 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.