From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: expand tabs in a shell Date: Tue, 17 Feb 2004 13:20:01 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5yoYb.41887$Lp.22044@twister.nyc.rr.com> References: <1033tptqvoesicc@corp.supernews.com> <4y4qtqc4ir.fsf@skjellgran.ii.uib.no> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077024834 16004 80.91.224.253 (17 Feb 2004 13:33:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2004 13:33:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 14:33:44 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1At5M8-0001d2-00 for ; Tue, 17 Feb 2004 14:33:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1At5Ln-0006S9-9Z for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2004 08:33:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 21 Original-NNTP-Posting-Host: 68.174.39.174 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1077024001 68.174.39.174 (Tue, 17 Feb 2004 08:20:01 EST) Original-NNTP-Posting-Date: Tue, 17 Feb 2004 08:20:01 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:120988 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16937 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16937 David Rasmussen wrote: > Joakim Hove wrote: >> how about redirection: >> expand file > tmp_file ; mv tmp_file file > > Sure, but that doesn't solve the problem with batch runs. I can't do > > expand *.cpp > > which would have been very easy. #!/bin/zsh #or choose a sufficiently powerful shell, such as bash for file in *.cpp do expand $file > tmp_file mv tmp_file $file done #See also nntp://comp.unix.shell