From: "José A. Romero L." <escherdragon@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: mask files and run command on them?
Date: Fri, 20 Apr 2012 04:32:47 -0700 (PDT) [thread overview]
Message-ID: <11030313.80.1334921568013.JavaMail.geo-discussion-forums@vbjb10> (raw)
In-Reply-To: <mailman.227.1334851234.751.help-gnu-emacs@gnu.org>
W dniu czwartek, 19 kwietnia 2012 10:27:42 UTC+2 użytkownik David Belohrad napisał:
(...)
> dired
> mark dirs using 'm'
> -do- svn rm command on each of the selected directories
>
> how I could handle this?
(...)
Have a look at `dired-do-shell-command' in dired-aux.el:
dired-do-shell-command is an interactive compiled Lisp function in
`dired-aux.el'.
(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 M-x universal-argument means the current file.
The prompt mentions the file(s) or the marker, as appropriate.
If there is a `*' in COMMAND, surrounded by whitespace, this runs
COMMAND just once with the entire file list substituted there.
If there is no `*', but there is a `?' in COMMAND, surrounded by
whitespace, this runs COMMAND on each file individually with the
file name substituted for `?'.
Otherwise, this runs COMMAND on each file individually with the
file name added at the end of COMMAND (separated by a space).
You may need to add a (require 'dired-aux) to you .emacs file to have
it available. It's usuable mapped to '!'.
Cheers,
--
José A. Romero L.
escherdragon at gmail
"We who cut mere stones must always be envisioning cathedrals."
(Quarry worker's creed)
next parent reply other threads:[~2012-04-20 11:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.227.1334851234.751.help-gnu-emacs@gnu.org>
2012-04-20 11:32 ` José A. Romero L. [this message]
2012-04-19 8:27 mask files and run command on them? David Belohrad
2012-04-19 16:38 ` Drew Adams
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=11030313.80.1334921568013.JavaMail.geo-discussion-forums@vbjb10 \
--to=escherdragon@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).