Date: Tue, 12 Nov 1996 04:04:58 +0000 From: mark@linus.demon.co.uk (Mark Valentine) To: hackers@freebsd.org, wosch@cs.tu-berlin.de Subject: Re: cvs commit: src/share/doc/handbook porting.sgml ports.sgml Message-ID: <199611120404.EAA23202@janai.thuvia.org> In-Reply-To: Wolfram Schneider's message of Nov 12, 3:46am
next in thread | raw e-mail | index | archive | help
> From: Wolfram Schneider <wosch@cs.tu-berlin.de> > 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 <mailto:mv@pobox.com> <http://www.pobox.com/~mv/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611120404.EAA23202>