From owner-freebsd-questions@FreeBSD.ORG Wed May 18 19:10:02 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B654E1065749 for ; Wed, 18 May 2011 19:10:02 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB0E8FC1B for ; Wed, 18 May 2011 19:10:02 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id DDF85E81C98; Wed, 18 May 2011 12:10:01 -0700 (PDT) Date: Wed, 18 May 2011 12:10:01 -0700 From: Gary Kline To: Dan Nelson Message-ID: <20110518191001.GA22364@thought.org> References: <20110518174141.GA62977@thought.org> <20110518180936.GD34082@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110518180936.GD34082@dan.emsphone.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List Subject: Re: Expanding tabs (was Re: kwik way?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 19:10:02 -0000 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 > Subject: Re: Expanding tabs (was Re: kwik way?) > To: Gary Kline > Cc: FreeBSD Mailing List > > 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!] aapreciate it. > > -- > Dan Nelson > dnelson@allantgroup.com -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org