From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jos=E9_A=2E_Romero_L=2E?= Newsgroups: gmane.emacs.help Subject: Re: mask files and run command on them? Date: Fri, 20 Apr 2012 04:32:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: <11030313.80.1334921568013.JavaMail.geo-discussion-forums@vbjb10> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334923225 24974 80.91.229.3 (20 Apr 2012 12:00:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2012 12:00:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 14:00:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLCVj-0000zI-Hp for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2012 14:00:24 +0200 Original-Received: from localhost ([::1]:43380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLCVi-0006oT-25 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2012 08:00:22 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 213.17.133.2 Original-X-Trace: posting.google.com 1334922994 454 127.0.0.1 (20 Apr 2012 11:56:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 Apr 2012 11:56:34 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.17.133.2; posting-account=mkEKGAoAAACAV2vhv5r9WHXWqsdL_niD User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:192115 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:84531 Archived-At: W dniu czwartek, 19 kwietnia 2012 10:27:42 UTC+2 u=C5=BCytkownik David Belo= hrad napisa=C5=82: (...) > dired > mark dirs using 'm' > -do- svn rm command on each of the selected directories >=20 > 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'. =20 (dired-do-shell-command COMMAND &optional ARG FILE-LIST) =20 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 cur= rent file. The prompt mentions the file(s) or the marker, as appropriate. =20 If there is a `*' in COMMAND, surrounded by whitespace, this runs COMMAND just once with the entire file list substituted there. =20 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 `?'. =20 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=C3=A9 A. Romero L. escherdragon at gmail "We who cut mere stones must always be envisioning cathedrals." (Quarry worker's creed)