a perl question

Chad Perrin perrin at apotheon.com
Wed Jan 5 22:21:37 UTC 2011


On Wed, Jan 05, 2011 at 10:15:38PM +0000, RW wrote:
> 
> For example it's easier to edit 
> 
>      cat file | foo
> 
> into 
>    
>      cat file | bar | foo
> or   cat file? | foo
> 
> than editing 
> 
>      foo < file
> 
> into
> 
>      bar < file | foo
> or   cat file? | foo

In this case, example was:

    cat file | foo arg

. . . 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.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110105/68c61f1f/attachment.pgp


More information about the freebsd-questions mailing list