---

Line Addressing in sed

[ Thanks to Andrew
Weber
for this link. ]

“Line addressing allows you to select the lines that you want to
work with. Addressing can use regular expressions to determine the
lines or list numbers for the lines in the format of a number. If
two numbers are used separated by a comma then it becomes a
range.

“A good example of this is when you place the contents of top
into a file so you can work with it. However, top has five lines at
the top that make it hard to work with the lines below. You can see
that in the example.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis