Skip site navigation (1)Skip section navigation (2)
Date:      28 Dec 2001 22:32:11 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Alfred Perlstein <bright@mu.org>
Cc:        Peter Wemm <peter@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_subr.c
Message-ID:  <xzpy9jnm3ok.fsf@flood.ping.uio.no>
In-Reply-To: <20011228151700.Z55891@elvis.mu.org>
References:  <200112190135.fBJ1ZIS15042@freefall.freebsd.org> <xzp4rmbnnha.fsf@flood.ping.uio.no> <20011228151700.Z55891@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein <bright@mu.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpy9jnm3ok.fsf>