unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bruce Ingalls <bingalls@fit-zones.NO-SPAM.com>
Subject: Re: expand tabs in a shell
Date: Tue, 17 Feb 2004 13:20:01 GMT	[thread overview]
Message-ID: <5yoYb.41887$Lp.22044@twister.nyc.rr.com> (raw)
In-Reply-To: <c0svh8$irc$2@news.net.uni-c.dk>

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

  reply	other threads:[~2004-02-17 13:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-17 10:54 Emacs as a command line tool David Rasmussen
2004-02-17 10:57 ` Billy O'Connor
2004-02-17 11:08   ` David Rasmussen
2004-02-17 15:16     ` Pascal Bourguignon
2004-02-17 16:02       ` David Rasmussen
2004-02-17 17:06         ` Pascal Bourguignon
2004-02-19  0:29           ` Kevin Rodgers
2004-02-17 11:14 ` Roodwriter
2004-02-17 11:19   ` David Rasmussen
2004-02-17 11:46     ` Joakim Hove
2004-02-17 12:06       ` David Rasmussen
2004-02-17 13:20         ` Bruce Ingalls [this message]
2004-02-17 17:24           ` expand tabs in a shell Bruce Ingalls
2004-02-19  7:01         ` Emacs as a command line tool Roodwriter
2004-02-17 13:35 ` Floyd Davidson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='5yoYb.41887$Lp.22044@twister.nyc.rr.com' \
    --to=bingalls@fit-zones.no-spam.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).