08-02-2014
It would copy all files (excluding directories, but including the target of symbolic links and other special files) matching * from /home/hope/files to /home/hope/backup.
Please install a Linux, Unix or Cygwin or the likes onto your computer and practice, instead of continually asking these types of questions.
This User Gave Thanks to Scott For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am a shell-script newbie and am looking to synchronize certain files in two directory structures.
Both these directory-trees are in CVS and so I dont want the CVS directory to be copied over.
I want only .sh and .pl files in each subdirectory under these directory trees to be... (3 Replies)
Discussion started by: sharpsharkrocks
3 Replies
2. Shell Programming and Scripting
Hi,
find . | xargs -s 47518 can list all the files and directories recursively , is there any possibility to copy only files from directories and subdirectoreis once it is listed. Please help
Thans & Regards
Uma (3 Replies)
Discussion started by: umapearl
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have d1,d2,d3 directories
/
/home/abc/d1
/home/abc/d2
/home/abc/d3
d1,d2 and d3 also have subdirctories.
d1-->d11-->d12
d2-->d22-->d23
d3-->d33-->d34
All these directories have files like date_filename.txt
so I want to find the files recusively for a particular date from... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
4. Shell Programming and Scripting
I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find )
The directory structure looks like :-
/tmp
a.log
b.log
c.log
/abcd
d.log
e.log
When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies
5. Red Hat
Hi guys,
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Discussion started by: rockf1bull
1 Replies
6. Shell Programming and Scripting
hi all
I want a script that will use ftp to copy folder and sub folders from source server to current server. if i use -r switch then it just copies folders for 5 level. (1 Reply)
Discussion started by: kashif.live
1 Replies
7. Shell Programming and Scripting
I have directory path in which there are several sub directories. In all these sub dir there will be one env.cnf file. I want to copy this env.cnf file from
each sub dir's and place them in destination path by creating same filename as sub dir_env.cnf.
After copying env.cnf files from source... (4 Replies)
Discussion started by: Optimus81
4 Replies
8. 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
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
CPMCP(1) User commands CPMCP(1)
NAME
cpmcp - copy files from and to CP/M disks
SYNOPSIS
cpmcp [-f format] [-p] [-t] image user:file file
cpmcp [-f format] [-p] [-t] image user:file ... directory
cpmcp [-f format] [-p] [-t] image file user:file
cpmcp [-f format] [-p] [-t] image file ... user:
DESCRIPTION
cpmcp copies one or more files to or from a CP/M disk. When copying multiple files, the last argument must be a drive or directory. The
drive letter does not matter because the device is specified by the image, it is only used to specify which direction you want to copy.
The user number is specified after the drive letter, if omitted user 0 is used.
You can use * and ? in CP/M file names, which have the same meaning in sh(1) file name patterns.
OPTIONS
-f format
Use the given CP/M disk format instead of the default format.
-p Preserve time stamps when copying files from CP/M to UNIX (not implemented for copying the other way so far).
-t Convert text files between CP/M and UNIX conventions.
RETURN VALUE
Upon successful completion, exit code 0 is returned.
ERRORS
Any errors are indicated by exit code 1.
FILES
/etc/cpmtools/diskdefs CP/M disk format definitions
AUTHORS
This program is copyright 1997-2010 Michael Haardt <michael@moria.de>. The Windows port is copyright 2000, 2001 John Elliott
<jce@seasip.demon.co.uk>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
SEE ALSO
cpmls(1), cpm(5)
CP
/M tools March 30, 2010 CPMCP(1)