If you don’t want to print lines that don’t match, you can use the combination of
-n
option which tells sed not to printp
flag which tells sed to print what is matched
This gives:
sed -n 's/.../.../p'
If you don’t want to print lines that don’t match, you can use the combination of
-n
option which tells sed not to printp
flag which tells sed to print what is matchedThis gives:
sed -n 's/.../.../p'