factjuice
Technology  /  sed

Facts about Sed

6 facts squeezed so far
  1. 06

    Sed's hold space and pattern space mechanism allows temporary storage of lines during processing, enabling complex multi-line transformations impossible with single-line operations alone.

    SedMay 14unixprogrammingtext-processing
  2. 05

    Sed's 'y' transliterate command performs one-to-one character mapping, converting each character in a source set to its corresponding character in a destination set, unlike substitution which matches patterns.

    SedMay 14unixtext-processingcommand-line
  3. 04

    Sed's 'd' command deletes entire lines matching a pattern, and when combined with address ranges like '1,5d', it removes lines 1 through 5 in a single operation.

    SedMay 14unixtext-processingcommand-line
  4. 03

    In a single sed command, the substitute function's fourth flag parameter can use a number like 2 or 3 to replace only the second or third occurrence of a pattern on each line.

    SedMay 14softwarecomputingsyntax
  5. 02

    Most sed implementations use the Basic Regular Expression syntax, which requires backslashes to escape metacharacters like parentheses and braces, unlike modern Extended Regular Expressions.

    SedMay 14softwaretechnicalprogramming
  6. 01

    The sed stream editor, first released in 1978 by Lee E. McMahon at Bell Labs, processes text line-by-line using regular expressions for efficient file manipulation.

    SedMay 14computingunixhistory