From owner-cvs-all Fri Dec 28 13:32:17 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 93A6337B417; Fri, 28 Dec 2001 13:32:14 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id A408614C53; Fri, 28 Dec 2001 22:32:12 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Alfred Perlstein Cc: Peter Wemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_subr.c References: <200112190135.fBJ1ZIS15042@freefall.freebsd.org> <20011228151700.Z55891@elvis.mu.org> From: Dag-Erling Smorgrav Date: 28 Dec 2001 22:32:11 +0100 In-Reply-To: <20011228151700.Z55891@elvis.mu.org> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein writes: > find sys -type f -name "*.c" | > while read i ; do > sed 's/\(^[a-z].*\).*=.*0;/\1;/' < $i > $i.new > mv $i.new $i > done > cvs commit -m "Peter made me do it" perl -p -i -e 'while (s/^(\w.*)=\s+0([,;].*)$/$1$2/) { }' \ $(find sys -type f -name "*.c") cvs commit -m "Peter made me do it" (your version will break variables that are initialized to e.g. 10) DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message