From owner-freebsd-hackers Mon Nov 11 20:05:39 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA13064 for hackers-outgoing; Mon, 11 Nov 1996 20:05:39 -0800 (PST) Received: from janai.thuvia.org (linus.demon.co.uk [158.152.10.220]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA13056 for ; Mon, 11 Nov 1996 20:05:26 -0800 (PST) Received: (from mark@localhost) by janai.thuvia.org (8.8.2/8.8.2) id EAA23202; Tue, 12 Nov 1996 04:04:58 GMT Message-Id: <199611120404.EAA23202@janai.thuvia.org> From: mark@linus.demon.co.uk (Mark Valentine) Date: Tue, 12 Nov 1996 04:04:58 +0000 In-Reply-To: Wolfram Schneider's message of Nov 12, 3:46am X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: hackers@freebsd.org, wosch@cs.tu-berlin.de Subject: Re: cvs commit: src/share/doc/handbook porting.sgml ports.sgml Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > From: Wolfram Schneider > Date: Tue 12 Nov, 1996 > Subject: Re: cvs commit: src/share/doc/handbook porting.sgml ports.sgml > Jordan K. Hubbard writes: > >> I'm guessing sed, I thought Jordan had a disdain dislike for perl. :-) > > > >sed, definitely. I mean, who needs perl when you've already got > >sed, sh and awk? :-) > > Perl is 8 bit clean and can edit binary data. > > $ wc /kernel > 2379 24484 808608 /kernel > $ perl -npe 's,/sbin/,/SBIN/,g' /kernel | wc > 2379 24484 808608 /kernel > $ sed 's,/sbin/,/SBIN/,g' /kernel | wc > 67 753 29419 $ wc /kernel 3672 44913 1282638 /kernel $ /usr/gnu/bin/sed 's,/sbin/,/SBIN/,g' /kernel | wc 3672 44913 1282638 Are there any bugs in the perl implementation? If there are, do I have a choice of implementations? ;-) Mark. -- Mark Valentine at Home