sed |
p |
print the current line | |
d |
delete (don't print) the current line | |
s/ / / | substitute first occurrence of string matching RegExp by Replace string | |
s/ / /g | substitute all occurrences of string matching RegExp by Replace string | |
q |
terminate execution of sed |