[nycbug-talk] two quick things
Matthew Story
matt at tablethotels.com
Thu Jan 5 22:40:19 EST 2012
the useless use of head, reminds me of my favorite quote from The UNIX Programming Environment ...
With these ideas, it might seem sensible to write a program, called head,
to print the first few lines of each filename argument. But sed 3q (or 10q)
is so easy to type that we've never felt the need.
~ p.124
On Jan 5, 2012, at 9:50 PM, Eitan Adler wrote:
> On Thu, Jan 5, 2012 at 9:39 PM, Jan Schaumann <jschauma at netmeister.org> wrote:
>> Matthew Story <matt at tablethotels.com> wrote:
>>>
>>>> Or just not use grep at all.
>>>
>>> indeed ... for the uninitiated: http://partmaps.org/era/unix/award.html#grep
>>
>> On that occasion, I shall pimp my own "Useless Use of *" presentation I
>> gave at SCALE back in 07:
>> http://netmeister.org/misc/useless_use.pdf
>
> You have a useless use of awk here.
>
> awk '{print $2}' < file
> should be
> cut -d ' ' -f 2 file
>
> Generally it looks like a good presentation though. Wish I was there.
>
> --
> Eitan Adler
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/talk/attachments/20120105/8df83267/attachment.htm>
More information about the talk
mailing list