From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: dired operation - rsync?
Date: Wed, 22 Jun 2011 11:38:27 -0700 [thread overview]
Message-ID: <874o3haezg.fsf@ericabrahamsen.net> (raw)
In-Reply-To: itqert$6kp$1@dough.gmane.org
On Tue, Jun 21 2011, Neal Becker wrote:
> Eli Zaretskii wrote:
>
>>> From: Neal Becker <ndbecker2@gmail.com>
>>> Followup-To: gmane.emacs.help
>>> Date: Tue, 21 Jun 2011 08:32:47 -0400
>>>
>>> I'd like to mark a bunch of files, but then, instead of Copy them, I want to
>>> rsync them. Any ideas? Is this worthy of an enhancement request for dired?
>>
>> What's wrong with hitting `!' after marking those files, and then
>> typing the rsync command?
>
> Only that you have no control over how those filenames get substituted into the
> command.
>
> rsync ${file} somepath...
'*' and '?' should do what you want.
(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 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 `?'.
next prev parent reply other threads:[~2011-06-22 18:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 12:32 dired operation - rsync? Neal Becker
2011-06-21 14:12 ` Eli Zaretskii
2011-06-21 15:54 ` Neal Becker
2011-06-22 18:38 ` Eric Abrahamsen [this message]
2011-06-22 23:12 ` Neal Becker
2011-06-21 19:02 ` Michael Albinus
2011-06-22 13:01 ` Neal Becker
2011-06-23 13:16 ` Michael Albinus
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=874o3haezg.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--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.
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.