[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired operation - rsync?

From: Eric Abrahamsen
Subject: Re: dired operation - rsync?
Date: Wed, 22 Jun 2011 11:38:27 -0700
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

On Tue, Jun 21 2011, Neal Becker wrote:

> Eli Zaretskii wrote:
>>> From: Neal Becker <address@hidden>
>>> Followup-To:
>>> 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 `?'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]