If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*. I do not want to create sub folders in folder2.
Quote:
Originally Posted by santosh2626
It has to create sub folders.
i m using the command
find /directory1/sub1/ -name $file -exec cp -p {} /directory2/lib/ \;
but in the "sub1" folder i have subfolders and files, which are copied as all files in the single folder "lib" but not creating the subfolders present in the "sub1". I need those subfolders also to be created and copied.
Contradicting requirements.
And surprising that cp -R didn't work.
This User Gave Thanks to balajesuri For This Post:
I need to copy about 13 Tb of data from one directory and subdirectories to the other (another mount point). If I run this as a cron, say between 10 pm and 7 am, not all of the files will be copied over. Is there a way of 'resuming' the copy the following evenings until all files are copied over? (0 Replies)
Hi
when copy the files from one directory to another as like below,it is tried to copy *. as a file.
cp /home/rha/*.
My objective is to copy all the files (don't care about case sensitive),
Thanks in advance for your valuable reply. (1 Reply)
Hello All. I am trying to do this from a terminal prompt on my mac....
I have 100 folders all named different things. Those 100 folders are inside ~/Desktop/Pictures directory.
Each of the 100 folders are uniquely named. The image files inside of each folder only have some similarities.
... (1 Reply)
Dear All,
Again I have another simple question. :confused:
I want to write a csh which can copy all files of a current directory with a new name in the same directory, I mean:
If I have tree bird apple as files in a directory I want to give ,say number 007 as argument to my csh and it copies... (3 Replies)
I have a requirement to delete the files and folders under a given directory.
my directory structure is like this..
Data
|
A(Directory)
|_PDF(Directory)----pdf files
|_XML()Directory --xml files
|--files
|
B(Directory)
|_PDF(Directory)----pdf files
|_XML()Directory --xml files ... (1 Reply)
I have a folder will a lot of documents (pdf, xls, doc etc.) which users have uploaded but only 20% of them are currently linking from my html files. So my goal is to copy only the files which are linked in my html files from my Document directory into another directory.
Eg: My documents exist... (5 Replies)
RedHat Enterprise Linux 5.4
I have some files with the extension .cdp in several directories in various mountpoints(filesystems) . I would like to find and copy all these files into a single directory /u03/diagnore/data.
How can I do this ? (3 Replies)
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)
hi,
i have a requirement to delete all the files from all the directories except some specific directories like archive and log.
for example:
there are following directories such as
A B C D Archive E Log F
which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
I need a hint for reading manpage (I did rtfm really) of cpio to do this task as in the headline described. I want to put all files of a certain type, lets say all *.txt files or any other format. Spread in more than hundreds of subdirectories in one directory I would like to select them and just... (3 Replies)
Discussion started by: 1in10
3 Replies
LEARN ABOUT DEBIAN
tdiary-setup
TDIARY-SETUP(1) General Commands Manual TDIARY-SETUP(1)NAME
tdiary-setup -- installer to set up tdiary files for a user
SYNOPSIS
tdiary-setup [default | symlink | copy | update ] directory
DESCRIPTION
This manual page documents briefly the tdiary-setup commands.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below. For a complete description, see the Info files.
default Copy CGI files and set up a tdiary user. Choose default if your httpd runs under suEXEC mode, which is generally recommended to
make security stronger.
symlink Make symbolic links and set up a tdiary user. Choose symlink if your httpd does not run under suEXEC mode.
copy Copy all the files and set up a tdiary user.
update Update existing tDiary setting. Use this when you update the tdiary package.
directory Directory where CGI files will be copied. If the directory does not exist it will be made.
USAGE
tdiary-setup default /home/foo/public_html/diary
AUTHOR
This manual page was written by Daigo Moriwaki beatles@sgtpepper.net for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GPL Version 2.
TDIARY-SETUP(1)