Date: Tue, 8 Apr 2003 17:27:07 -0400 From: Larry Sica <lomion@mac.com> To: chris@freebsd.org Cc: freebsd-chat@freebsd.org Subject: Re: FreeBSD Security Advisory FreeBSD-SA-03:99.freebsd-sa Message-ID: <D9E41F36-6A08-11D7-9140-000393A335A2@mac.com> In-Reply-To: <20030408033743.GC706@holly.machined.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, April 7, 2003, at 11:37 PM, Chris Costello wrote: > 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 > but cat looks cooler..the string is longer and therefore means you are l33t ;) --Larry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9E41F36-6A08-11D7-9140-000393A335A2>