a perl question

Chip Camden sterling at camdensoftware.com
Wed Jan 5 16:11:09 UTC 2011


Quoth Ian Smith on Thursday, 06 January 2011:
> In freebsd-questions Digest, Vol 344, Issue 4, Message: 14
> On Tue, 4 Jan 2011 23:24:01 -0700 Chad Perrin <perrin at apotheon.com> wrote:
>  > On Tue, Jan 04, 2011 at 09:33:03AM -0800, Randal L. Schwartz wrote:
>  > > >>>>> "Patrick" == Patrick Bihan-Faou <patrick.bihan-faou at teambox.fr> writes:
>  > > 
>  > > Patrick> cat asdf.txt | grep -v XYZ | grep -v bla
>  > > 
>  > > And yet, you still have the "Useless Use of Cat".
>  > 
>  > The weirdest thing about most useless uses of cat is that not using cat
>  > would actually be a little clearer and involve fewer keystrokes -- as in
>  > this case.
> 
> Do you know of any 'less useless' or more economical way to do such as:
> 
>  % cat /boot/boot1 /boot/boot2 | diff - /boot/boot
>  %
> 
> ?, Ian
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

Here you're using cat for what it was intended -- conCATenation.  It's
the right tool for that job.

-- 
Sterling (Chip) Camden    | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com        | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110105/8674c4bc/attachment.pgp


More information about the freebsd-questions mailing list