Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Line Addressing in sed

Jul 30, 2011, 10:01 (0 Talkback[s])

[ 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

Related Stories: