From owner-freebsd-chat@FreeBSD.ORG Mon Apr 7 20:35:29 2003 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02DD237B401 for ; Mon, 7 Apr 2003 20:35:29 -0700 (PDT) Received: from holly.machined.net (adsl-208-191-149-232.dsl.hstntx.swbell.net [208.191.149.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2746643F93 for ; Mon, 7 Apr 2003 20:35:28 -0700 (PDT) (envelope-from chris@holly.machined.net) Received: by holly.machined.net (Postfix, from userid 1001) id 9720FB5C; Mon, 7 Apr 2003 22:37:43 -0500 (CDT) Date: Mon, 7 Apr 2003 22:37:43 -0500 From: Chris Costello To: Anthony Schneider Message-ID: <20030408033743.GC706@holly.machined.net> References: <20030401.204134.48514670.hrs@eos.ocn.ne.jp> <20030405053907.GA6471@x-anthony.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030405053907.GA6471@x-anthony.com> User-Agent: Mutt/1.4.1i cc: freebsd-chat@freebsd.org Subject: Re: FreeBSD Security Advisory FreeBSD-SA-03:99.freebsd-sa X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris@FreeBSD.org List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 03:35:29 -0000 On Saturday, April 05, 2003, Anthony Schneider wrote: > Y"KNOW, sed accepts filenames as arguments. > > (it also really doesn't need the -e) > > > % cat /path/to/FreeBSD-SA-XX:XX.txt.asc\ > > | sed -e 's/FreeBSD-SA-\([0-9]*\):\([0-9]*\)/FreeBSD-SA-19\1:\2/g' Even still, you'd get nailed on comp.unix.shell and comp.unix.admin for this with a UUOC (Useless Use of Cat(1)) award. If for some reason sed(1) did not take a filename argument, then sed EXPR < filename is still cleaner than cat filename | sed EXPR -- Chris Costello FreeBSD Project http://www.FreeBSD.org/ TrustedBSD Project http://www.TrustedBSD.org/