Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2011 15:13:02 -0700
From:      Chad Perrin <perrin@apotheon.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: a perl question
Message-ID:  <20110105221302.GA77555@guilt.hydra>
In-Reply-To: <20110105221538.26daeb0d@gumby.homeunix.com>
References:  <117654.42578.qm@web121409.mail.ne1.yahoo.com> <AANLkTinEksoXQAA4ZAziE59h%2BLRTxSgSy2WZy6UaQne%2B@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 05, 2011 at 10:15:38PM +0000, RW wrote:
>=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

In this case, example was:

    cat file | foo arg

=2E . . where it could have been:

    foo arg file

That's just kind of absurd.  I mean, that sort of usage (foo arg file) is
exactly the purpose for which grep was designed.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk0k7O4ACgkQ9mn/Pj01uKXmQQCfVT2Xy9DL8W3owfW3S8oRS2D3
l4oAn0nfyiQnoj0fhRoAQXKOFPR1qaKW
=MIZE
-----END PGP SIGNATURE-----

--MGYHOYXEY6WxJCY8--



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