From owner-freebsd-questions@FreeBSD.ORG Thu Jan 6 09:49:52 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89D66106564A for ; Thu, 6 Jan 2011 09:49:52 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id E2D968FC1D for ; Thu, 6 Jan 2011 09:49:51 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id p069nm1p080685 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 6 Jan 2011 09:49:48 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p069nm1p080685 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1294307388; bh=HeeKwN4cmxzIUfbwXSzv0rdOa6jUfp1JXajSDXbDlSw=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4D259034.6020805@infracaninophile.co.uk>|Date:=20T hu,=2006=20Jan=202011=2009:49:40=20+0000|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.13)=20Gecko/20101207=20Thunderbird/3.1.7|MIME-Version:=201 .0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20a=20perl=2 0question|References:=20<117654.42578.qm@web121409.mail.ne1.yahoo. com>=09=09<4D231CB7.2060902@teambox.fr>=20<86pqsc3774.fsf@red.stonehen ge.com>=09<20110105062401.GB74123@guilt.hydra>=09<20110105160514.G A94459@libertas.local.camdensoftware.com>=20<20110105221538.26daeb 0d@gumby.homeunix.com>|In-Reply-To:=20<20110105221538.26daeb0d@gum by.homeunix.com>|X-Enigmail-Version:=201.1.1|OpenPGP:=20id=3D60AE9 08C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D= 0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D "------------enig9976880ABA0AD7D1E409BF71"; b=RXo2NChkm54+2gOaJRmgNP0bCh+xVexq6xX4DTi1ztZ33hSFq+yBlFVX5eIyheFO9 qfZWpj9plk89nNaptUxHkYrK6gA5G4/t4dCn/zi+IfWvEyPfZONCmKtdqvw8hpgzv+ JyysqRnh+99j+k0VkS2YtFbcZsVEIeQrs6MZshCc= Message-ID: <4D259034.6020805@infracaninophile.co.uk> Date: Thu, 06 Jan 2011 09:49:40 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <117654.42578.qm@web121409.mail.ne1.yahoo.com> <4D231CB7.2060902@teambox.fr> <86pqsc3774.fsf@red.stonehenge.com> <20110105062401.GB74123@guilt.hydra> <20110105160514.GA94459@libertas.local.camdensoftware.com> <20110105221538.26daeb0d@gumby.homeunix.com> In-Reply-To: <20110105221538.26daeb0d@gumby.homeunix.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9976880ABA0AD7D1E409BF71" X-Virus-Scanned: clamav-milter 0.96.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: a perl question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 09:49:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9976880ABA0AD7D1E409BF71 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/01/2011 22:15, RW wrote: > Personally I find that using cat makes things simpler and less error > prone when reusing pipelines in shell history. >=20 > For example it's easier to edit=20 >=20 > cat file | foo >=20 > into=20 > =20 > cat file | bar | foo > or cat file? | foo >=20 > than editing=20 >=20 > foo < file >=20 > into >=20 > bar < file | foo > or cat file? | foo Little known factoid -- shell redirections can occur *anywhere* on the command line. % > foo cat abcdefghijklmnopqrstuvwxyz % < foo tr 'a-z' 'm-za-l' mnopqrstuvwxyzabcdefghijkl Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig9976880ABA0AD7D1E409BF71 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0lkDwACgkQ8Mjk52CukIyiTwCgkPJtqjah8kNr++5uZ7TSfibc TpgAnjvj5xljgJNKcMx+snTkhsN4wyzh =0Qle -----END PGP SIGNATURE----- --------------enig9976880ABA0AD7D1E409BF71--