Date: Fri, 20 May 2011 16:12:35 +0200 From: "Julian H. Stacey" <jhs@berklix.com> To: Gary Kline <kline@thought.org> Cc: Dan Nelson <dnelson@allantgroup.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Expanding tabs (was Re: kwik way?) Message-ID: <201105201412.p4KECZUO078750@fire.js.berklix.net> In-Reply-To: Your message "Wed, 18 May 2011 12:10:01 PDT." <20110518191001.GA22364@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Reference: > From: Gary Kline <kline@thought.org> > Date: Wed, 18 May 2011 12:10:01 -0700 > Message-id: <20110518191001.GA22364@thought.org> Gary Kline wrote: > 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 <dnelson@allantgroup.com> > > Subject: Re: Expanding tabs (was Re: kwik way?) > > To: Gary Kline <kline@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 or expand (depending on whether you want to honor the intent of the tab > > or not). sed is overkill. > > > yeah, agree. i grabbed an old `for k in *;do' script and used tr on > 80+ files. [facing reality, i'm throwing in the towel on hacking. > wanted something easy!] http://berklix.com/~jhs/src/bsd/jhs/bin/public/tab/tab.c & tab.1 & Makefile works on the assumption of 8,16 etc, not other minorities eg ts=4 Mature code 1988 till now. Hasn't burnt me yet. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105201412.p4KECZUO078750>