The document of
sed states that
Delete the pattern space; immediately start next cycle.
sed is run without
sed auto print the pattern space after a
d command? I know at this situation, the pattern space is empty. So it's no differences to print or not. But I'm just curious.
I have this example:
root@u1804:~# seq 10 | sed -r '/5/d' 1 2 3 4 6 7 8 9 10 root@u1804:~#
As you can see, there is no
5. It's because the
d caused the execution directly to the next cycle or the auto print pattern space prints an empty string?