From owner-freebsd-questions@FreeBSD.ORG Fri May 20 14:13:15 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 2BA16106566C for ; Fri, 20 May 2011 14:13:15 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 8A38B8FC12 for ; Fri, 20 May 2011 14:13:13 +0000 (UTC) Received: from park.js.berklix.net (pD9FBF451.dip.t-dialin.net [217.251.244.81]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id p4KED0Q1006622; Fri, 20 May 2011 14:13:01 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id p4KECtPL079476; Fri, 20 May 2011 16:12:56 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id p4KECZUO078750; Fri, 20 May 2011 16:12:45 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201105201412.p4KECZUO078750@fire.js.berklix.net> To: Gary Kline From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Wed, 18 May 2011 12:10:01 PDT." <20110518191001.GA22364@thought.org> Date: Fri, 20 May 2011 16:12:35 +0200 Sender: jhs@berklix.com Cc: Dan Nelson , 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: Fri, 20 May 2011 14:13:15 -0000 Hi, Reference: > From: Gary Kline > 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 > > 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!] 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.