Next Hold Space 21

Heading translation in sed

  • For most lines, we simply process this:

        x;
  • Exchanges the pattern space (current line) and hold space (previous line)

  • Then sed's default behavior is to print the pattern space (previous line)


Next Next