Re: [dev] [PATCH] sbase: add cut

From: Strake <strake888_AT_gmail.com>
Date: Wed, 1 Aug 2012 08:32:08 -0500

On 01/08/2012, Martin Kopta <martin_AT_kopta.eu> wrote:
>> Also, I'm really curious why people use cut when awk exists.
>
> $ du -b /usr/bin/cut /usr/bin/gawk /opt/plan9/bin/awk
> 38600 /usr/bin/cut
> 400212 /usr/bin/gawk
> 105700 /opt/plan9/bin/awk
>
> Speed and simplicity I guess?
>
> Why would I use awk of which I don't remember syntax, when I could often
> do with trustworthy cut easily?

This. Actually just simplicity; I'm not sure which has better speed.

Meh.
Received on Wed Aug 01 2012 - 15:32:08 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 01 2012 - 15:36:03 CEST