From owner-freebsd-current Fri Sep 24 15:30: 5 1999 Delivered-To: freebsd-current@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 76A221513E for ; Fri, 24 Sep 1999 15:29:44 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id AAA04813 for freebsd-current@FreeBSD.ORG; Sat, 25 Sep 1999 00:29:07 +0200 (CEST) (envelope-from olli) Date: Sat, 25 Sep 1999 00:29:07 +0200 (CEST) From: Oliver Fromme Message-Id: <199909242229.AAA04813@dorifer.heim3.tu-clausthal.de> To: freebsd-current@FreeBSD.ORG Subject: Re: ccd build failure Organization: Administration Heim 3 Reply-To: freebsd-current@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh wrote in list.freebsd-current: > In message <19990923175400.M10357@futuresouth.com> "Matthew D. Fuller" writes: > : OK: > : #!/bin/sh > : (cvs status | grep '^File:' | grep -v 'Status: Up-to-date$') 2> /dev/null > ^^ -q Hm, that variant does not display the directory names at all. I'd like to propose the following variant. It's a bit longer than my first proposal, but just as efficient (maybe even more efficient, because it doesn't have to fork two greps). #!/bin/sh - cvs status 2>&1 \ | awk '/^File/ && ! /Status: Up-to-date$/ { $1 = dir "/" $2; $2 = ""; print; } /cvs server: Examining/ { dir = $4; }' Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message