Re: Expanding tabs (was Re: kwik way?)

2011-05-20 Thread Julian H. Stacey
dnel...@allantgroup.com Subject: Re: Expanding tabs (was Re: kwik way?) To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org In the last episode (May 18), Gary Kline said: should i use tr or sed to turn \t into ? --i.e., tabs into spaces. tr

Re: Expanding tabs (was Re: kwik way?)

2011-05-20 Thread Gary Kline
On Fri, May 20, 2011 at 04:12:35PM +0200, Julian H. Stacey wrote: Date: Fri, 20 May 2011 16:12:35 +0200 From: Julian H. Stacey j...@berklix.com Subject: Re: Expanding tabs (was Re: kwik way?) To: Gary Kline kl...@thought.org cc: Dan Nelson dnel...@allantgroup.com, FreeBSD Mailing List

Re: Expanding tabs (was Re: kwik way?)

2011-05-20 Thread perryh
Gary Kline kl...@thought.org wrote: how to i get, say hello, \t how are \t you to translate to hello, how are you [?] in other words, tab - 1 space rather than the defaul of 4. You only need something like expand or tab.c if you want to convert each tab to a variable number of spaces

kwik way?

2011-05-18 Thread Gary Kline
should i use tr or sed to turn \t into ? --i.e., tabs into spaces. tx! -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.98a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org

RE: kwik way?

2011-05-18 Thread Devin Teske
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Gary Kline Sent: Wednesday, May 18, 2011 10:42 AM To: FreeBSD Mailing List Subject: kwik way? should i use tr or sed to turn \t into ? --i.e., tabs into spaces

RE: kwik way?

2011-05-18 Thread Devin Teske
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Devin Teske Sent: Wednesday, May 18, 2011 11:19 AM To: 'Gary Kline'; 'FreeBSD Mailing List' Subject: RE: kwik way? -Original Message- From: owner

Re: Expanding tabs (was Re: kwik way?)

2011-05-18 Thread Gary Kline
On Wed, May 18, 2011 at 01:09:36PM -0500, Dan Nelson wrote: Date: Wed, 18 May 2011 13:09:36 -0500 From: Dan Nelson dnel...@allantgroup.com Subject: Re: Expanding tabs (was Re: kwik way?) To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org In the last

RE: kwik way?

2011-05-18 Thread Warren Block
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 real0m0.565s user0m0.277s sys 0m0.137s $ md5 bar MD5 (bar) =