{ "source": "Open Group Base Specifications Issue 7 sed examples", "examples": [ { "name": "global substitution", "script": "s/[0-9][0-9]*/NUM/g", "input": "a1 b22 c333", "expected": "aNUM bNUM cNUM" }, { "name": "delete blank lines", "script": "/^$/d", "input": "a\n\nb\n", "expected": "a\nb" }, { "name": "print matching range", "script": "/BEGIN/,/END/p", "input": "x\nBEGIN\na\nEND\ny\n", "expected": "BEGIN\na\nEND" } ] }