Re:Useful sed scripts and patterns
by adrianscheff on Friday November 12, 2021 @07:31AM
(#29198663)
Thank you for your feedback! Personally I very rarely use the ; operator since it works badly with braces and commands that use files.
However I've added an example using the ; operator.
PS: May I humbly point out that the command you provided will actually print up to line 10 and then a duplicate line. Like I said, unexpected (even though it seems logical). :)
PS: May I humbly point out that the command you provided will actually print up to line 10 and then a duplicate line. Like I said, unexpected (even though it seems logical). :)