Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2011 16:06:06 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Devin Teske <dteske@vicor.com>
Cc:        'Gary Kline' <kline@thought.org>, 'FreeBSD Mailing List' <freebsd-questions@freebsd.org>
Subject:   RE: kwik way?
Message-ID:  <alpine.BSF.2.00.1105181554100.59903@wonkity.com>
In-Reply-To: <000d01cc158a$639dfc30$2ad9f490$@vicor.com>
References:  <20110518174141.GA62977@thought.org> <000801cc1588$1cf81e20$56e85a60$@vicor.com> <000d01cc158a$639dfc30$2ad9f490$@vicor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 May 2011, Devin Teske wrote:

> In case you were thinking of either awk or perl, I'd recommend against those
> given the following results:
>
...
>
> $ time sh -c "perl -pe 'tr/\t/ /' < foo > bar"
> real    0m0.565s
> user    0m0.277s
> sys     0m0.137s
> $ md5 bar
> MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843

While Perl is a quarter of a second slower than best-case sed, it does 
offer the ability to directly understand \t (and \n, and lots of other 
escapes).



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