all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "François Gannaz" <mytskine@laposte.net>
Subject: Re: operating on dired marked files
Date: Fri, 27 Jan 2006 01:09:39 +0100	[thread overview]
Message-ID: <20060127000939.GA16209@free.fr> (raw)
In-Reply-To: <1138318584.044596.292590@f14g2000cwb.googlegroups.com>

Le jeu 26 jan 15:36, largo-linux a écrit :
> I would like to mark a number of files in dired and then use those
> files as arguments to a command.
> 
> but when i try this in dired, i.e. i mark three files then hit ! and
> then perhaps a perl script.  it seems only to output the results of the
> third file.  is there a way to do this so that it executes
> 
> script.pl file1.txt file2.txt file3.txt
> 

You should read the documentation, it is faster than asking here.
Typing C-h k ! gives :

** <quote> **
! runs the command dired-do-shell-command
   which is an interactive compiled Lisp function in `dired-aux'.
(dired-do-shell-command COMMAND &optional ARG FILE-LIST)

Run a shell command COMMAND on the marked files.
If no files are marked or a specific numeric prefix arg is given,
the next ARG files are used.  Just C-u means the current file.
The prompt mentions the file(s) or the marker, as appropriate.

If there is output, it goes to a separate buffer.

Normally the command is run on each file individually.
However, if there is a `*' in the command then it is run
just once with the entire file list substituted there.

[...]
** </quote> **

The last paragraph is exactly what you want.
--
François Gannaz

      parent reply	other threads:[~2006-01-27  0:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26 23:36 operating on dired marked files largo-linux
2006-01-27  0:09 ` Kevin Rodgers
2006-01-27  0:09 ` François Gannaz [this message]

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

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

  git send-email \
    --in-reply-to=20060127000939.GA16209@free.fr \
    --to=mytskine@laposte.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.