From owner-freebsd-current@FreeBSD.ORG Fri May 22 12:31:20 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0998106566C for ; Fri, 22 May 2009 12:31:20 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5F70E8FC0C for ; Fri, 22 May 2009 12:31:18 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 4908F4C80D7 for ; Fri, 22 May 2009 14:31:14 +0200 (CEST) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp4-g21.free.fr (Postfix) with ESMTP id 6D23C4C8034 for ; Fri, 22 May 2009 14:31:12 +0200 (CEST) Received: from obiwan.tataz.chchile.org (obiwan.tataz.chchile.org [192.168.1.222]) by endor.tataz.chchile.org (Postfix) with ESMTP id AE42633E5F for ; Fri, 22 May 2009 12:30:35 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 9761450835; Fri, 22 May 2009 14:30:35 +0200 (CEST) Date: Fri, 22 May 2009 14:30:35 +0200 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20090522123035.GA45358@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: bin/134856: sed(1) "addr1,+N" address range X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 12:31:21 -0000 Hi! 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. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >