bin/134856: sed(1) "addr1,+N" address range

Jeremie Le Hen jeremie at
Fri May 22 12:31:21 UTC 2009


Yesterday there has been a sudden CPU burst on my workstation.  In case
it would happen again, I wanted to use something like
	top -n | sed -n /PID/,+5p
in a loop.

Unfortunately, the above address range is not recognized by sed(1) on
FreeBSD.  I thought it was because I use it very often in Vim.

PR bin/134856 includes a patch to implement this.  The manpage has been
updated as well and this extension is referenced as non-standard along
with the other ones.

Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

More information about the freebsd-current mailing list