• edit a stream programmatically!
• anchors - provide ranges for command action:
• line number : absolute coordinates, beginning at 1
• /pattern/: match text• if none given, whole file is implied
• editing commands:• s: search and replace
• a, i, c: add, insert or change data
• d: delete lines
• p: print line after edit (used with -n, which suppresses default output)