[Top][All Lists]

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

Copying files with dired preserving structure

From: Alberto Luaces
Subject: Copying files with dired preserving structure
Date: Tue, 05 Jan 2016 18:03:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)


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

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

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.



reply via email to

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