From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: dired operation - rsync? Date: Wed, 22 Jun 2011 11:38:27 -0700 Message-ID: <874o3haezg.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308768043 7354 80.91.229.12 (22 Jun 2011 18:40:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2011 18:40:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 20:40:40 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZSLw-0003sk-0t for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2011 20:40:40 +0200 Original-Received: from localhost ([::1]:56995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZSLu-0000WG-QW for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2011 14:40:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZSK2-0000Vd-OB for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 14:38:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZSK0-0004ud-Iw for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 14:38:42 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZSK0-0004uW-7P for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 14:38:40 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZSJz-0002lu-3z for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 20:38:39 +0200 Original-Received: from c-71-227-187-115.hsd1.wa.comcast.net ([71.227.187.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 20:38:39 +0200 Original-Received: from eric by c-71-227-187-115.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 20:38:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-227-187-115.hsd1.wa.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:Vbaa5RVj7L4a0RKZK+jz0xBAgDg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81399 Archived-At: On Tue, Jun 21 2011, Neal Becker wrote: > Eli Zaretskii wrote: > >>> From: Neal Becker >>> 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 `?'.