01-07-2008
Hi porter
The problem is that I dont want to copy all files from the directory tree.
I want to have complete control over the directories from which the files are copied and also the files themselves.
Only part of the directory trees are identical (nomenclature wise, etc)
hence cvs export and reimport would fail.
Sharpshark
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, hopefully this is a fairly simple Q&A.
I have a clean file list of approximately 180 filenames with no directory or slashes in front of the filename nor any extension or dot ".". I would like to read from this list, find these files recursively down through directory trees, copy the files... (1 Reply)
Discussion started by: fxvisions
1 Replies
2. UNIX for Dummies Questions & Answers
Mi question is how can you copy only de three of directory and not the files in it.
Only a need the three of directorys not the files (6 Replies)
Discussion started by: enkei17
6 Replies
3. UNIX for Dummies Questions & Answers
Iam in the process of copying a directory with thousands of directories and files into a new directory.
I need to preserve permissions, owner, group, date and timestamps, everything.
Iam using AIX and would need help of writing the command whether it is cp-RP or cpio.
Apprecaite your... (3 Replies)
Discussion started by: baanprog
3 Replies
4. Shell Programming and Scripting
I'm sure this has been asked many times, but a search didn't turn up a definitive best method for this (if there ever is such a thing).
I have been using rsync to back up my main data directory, but I have accumulated a large number of older backups that I don't need. All of the files I don't... (14 Replies)
Discussion started by: LMHmedchem
14 Replies
5. Shell Programming and Scripting
Hi
I need to copy a huge directory with thousands of files onto another directory but without *.WMV files (and without *.wmv - perhaps we need to use *.).
Pls advise how can I do that.
Thanks (17 Replies)
Discussion started by: reddyr
17 Replies
6. Shell Programming and Scripting
I love the -newerct flag for the Cygwin find command on windows.
Can I use "/usr/bin/find . -newerct '3 hours ago'" to conditionally copy a directory tree so that only the files in the directory tree that are younger than 3 hours are copied to my destination directory such that the directory... (4 Replies)
Discussion started by: siegfried
4 Replies
7. Shell Programming and Scripting
Hi.
I found many scripts in the web of achieving this.
But I like to use this one
find /EDWH-DMT03 -xdev -size +10000 -exec ls -la {} \;|sort -n -k 5 > LARGE.rst
But the problem is, why it still list out files with 89 bytes as the output? Is there anything wrong with the command?
My... (7 Replies)
Discussion started by: aimy
7 Replies
8. Shell Programming and Scripting
RootFolderI:
RootFolderI/FolderA/Subfolder1/Subsub1/JPG1.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub1/JPG2.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub2/JPG3.jpg
. . .
RootFolderI/FolderB/Subfolder1/Subsub1/JPG4.jpg -> want this jpg
... (1 Reply)
Discussion started by: blocnt
1 Replies
9. Shell Programming and Scripting
Is it possible to only copy selected files+its directories when you are copying recursively?
find /OriginalFolder/* -type -d \{ -mtime 1 -o -mtime 2 \ } -exec cp -R {} /CopyTo/'hostname'__CopyTo/ \; -print
From the above line, I want to only copy *txt and *ini files from /OriginalFolder/*
... (4 Replies)
Discussion started by: apacheLinux
4 Replies
10. Shell Programming and Scripting
I need to copy a complete directory structure into a new location. But I want to have all files copied into one directory and leave out the directory structure. So all files must be placed in one directory. (4 Replies)
Discussion started by: ReneVL
4 Replies
LEARN ABOUT DEBIAN
dirdiff
DIRDIFF(1) General Commands Manual DIRDIFF(1)
NAME
dirdiff - display differences and merge changes between directory trees
SYNOPSIS
dirdiff [-a|--all] [-o|--only pattern] [-I|--ignore pattern] [-r|--rcs] [-t|--bktag] [-c|--context num] [-b] [-w] [-B] [-i] [-d] [-S] [-k]
dir1 dir2 ...
OPTIONS
-a,--all
Don't exclude any files.
-o,--only pattern
Only process files matching pattern.
-I,--ignore pattern
Don't process files matching pattern.
-r,--rcs
Ignore differences in RCS strings.
-t,--bktag
Ignore differences in Bitkeeper strings.
-c,--context num
Set number of lines of context to show.
-b,-w,-B,-i,-d
Pass these on to diff.
-S Show files that are the same in the file list.
-K Enable bitkeeper support.
DESCRIPTION
Dirdiff is a graphical tool for displaying the differences between directory trees (up to 5) and for merging changes from one tree into
another.
At startup, dirdiff displays a main window with a list of the files that are different between the trees. Colored squares are used to
indicate the relative ages of the versions. Files are like leaves on a deciduous tree: the newest ones are green, and then they turn yel-
low, orange, and red as they get older. Missing files are black, and directories are white.
To see the differences between two versions of a file, double-click on the file name. By default, the first and last versions are com-
pared, but this can be changed using the Diff menu in the main window. In the differences window, there are checkboxes to the left of all
the sections which are different. You can use button 1 to select an individual checkbox, or shift-button 1 or button 3 to select a whole
group. Selecting a line means that you are asking for that change to be made when you update either of the files using the Merge menu.
The line will be removed if it is already present or added if it is not present.
To copy from one tree to another, click on the file name and select the appropriate copy operation from the Copy menu of the main window.
Selecting Make patch from the File menu of the main window produces a file describing the changes between the files that can be applied by
the patch tool. You can edit the patch before saving, and may wish to add explanatory text, instructions, or patch Prereq lines at the
beginning. To save the patch, enter a filename in the patch window relative to the current directory, and choose Save. This will also
close the window.
If you are sending out patches, then the from directory should be the original version of the source. Try to make sure that the two files
have the same number of leading directories. See the patch(1) man page for more information.
NOTES
Dirdiff needs to be able to load the libfilecmp.so.0.0 shared library for the -r or -t flags to work.
SEE ALSO
diff(1) patch(1)
AUTHOR
Paul Mackerras
May 2002 DIRDIFF(1)