There is one more simple command that can restrict the changes to a set of lines. It is the "q" command: quit. the third way to duplicate the head command is:
sed '11 q'
which quits when the eleventh line is reached. This command is most useful when you wish to abort the editing after some condition is reached.
The "q" command is the one command that does not take a range of addresses. Obviously the command:
sed '1,10 q'
cannot quit 10 times. Instead:
sed '1 q'
or
sed '10 q'
is correct.
SOURCE | LINK | LANGUAGE | ENGLISH |
I appreciate, cause I found exactly what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye
Hey very cool site!! Man .. Beautiful .. Amazing .. I’ll bookmark your site and take the feeds also…I’m happy to find numerous useful information here in the post, we need develop more strategies in this regard, thanks for sharing. . . . . .
Spot on with this write-up, I truly assume this website wants much more consideration. I’ll probably be again to read much more, thanks for that info.