Date: Mon, 7 Apr 2003 22:37:43 -0500 From: Chris Costello <chris@FreeBSD.org> To: Anthony Schneider <anthony@x-anthony.com> Cc: freebsd-chat@freebsd.org Subject: Re: FreeBSD Security Advisory FreeBSD-SA-03:99.freebsd-sa Message-ID: <20030408033743.GC706@holly.machined.net> In-Reply-To: <20030405053907.GA6471@x-anthony.com> References: <20030401.204134.48514670.hrs@eos.ocn.ne.jp> <20030405053907.GA6471@x-anthony.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chris@FreeBSD.org> FreeBSD Project http://www.FreeBSD.org/ TrustedBSD Project http://www.TrustedBSD.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030408033743.GC706>