From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alberto Luaces Newsgroups: gmane.emacs.help Subject: Copying files with dired preserving structure Date: Tue, 05 Jan 2016 18:03:46 +0100 Message-ID: <87y4c4dklp.fsf@eps142.cdf.udc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452013475 6912 80.91.229.3 (5 Jan 2016 17:04:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 17:04:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 18:04:27 2016 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 1aGV1z-0005cx-2n for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 18:04:23 +0100 Original-Received: from localhost ([::1]:50622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV1y-0007Ui-Ij for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 12:04:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV1e-0007UN-JL for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGV1Z-0002sB-GX for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:04:02 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV1Z-0002rK-9s for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:03:57 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGV1W-0005Aa-Uz for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 18:03:55 +0100 Original-Received: from 180eps.cdf.udc.es ([193.147.37.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 18:03:54 +0100 Original-Received: from aluaces by 180eps.cdf.udc.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 18:03:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 180eps.cdf.udc.es User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:j6VgQJd5FlIpiHSEWm+naknauUw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:108620 Archived-At: Hi, I want to classify some files contained in a directory hierarchy into several groups, depending on their content. So far I do a 'find-dired' to get a list of the available files and then I mark each group by grepping into the files (dired-mark-files-containing-regexp). The problem is that if I try now to move those files elsewhere, the hierarchy is lost, and besides that, files with the same name are overwritten. I have tried to "tar" the marked files to preserve the hierarchy, but this approach is somewhat fragile, as I tend to use incorrect tar flags and I risk corrupting my work when updating some of those "groups". I am looking for a way to move marked files to a different place preserving the directory structure with dired. Thanks, -- Alberto