Sponsored Content
Full Discussion: Copy files recursively
Top Forums UNIX for Dummies Questions & Answers Copy files recursively Post 302911707 by pinklemon on Saturday 2nd of August 2014 03:02:29 PM
Old 08-02-2014
unix

Aha!
So, files containing .b and .d would be copied too, if it was .* instead of *
Many thanks!!!

What means the word "recursively" exactly here? To be cpied to "themselves" (same file content, same name, I supoose?)
Many thanks!!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Recursively copy only specific files from a directory tree

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

Copy only files recursively

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

Need help in moving files recursively

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

Recursively move directories along with files/specific files

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

Copy certain file types recursively while maintaining file structure on destination?

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

ftp script to copy folders recursively

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

Shell script to copy particular file from directories recursively

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

How to recursively copy directory only for recent files?

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

Copy Specific Files Recursively

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

Copy files recursively to one single directory

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
dbm(3x) 																   dbm(3x)

Name
       dbminit, fetch, store, delete, firstkey, nextkey - data base subroutines

Syntax
       typedef struct {
	    char *dptr;
	    int dsize;
       } datum;

       dbminit(file)
       char *file;

       datum fetch(key)
       datum key;

       store(key, content)
       datum key, content;

       delete(key)
       datum key;

       datum firstkey()

       datum nextkey(key)
       datum key;

Description
       These  functions  maintain  key/content	pairs  in a data base.	The functions will handle very large (a billion blocks) databases and will
       access a keyed item in one or two file system accesses.	The functions are obtained with the loader option -ldbm.

       Keys and contents are described by the datum typedef.  A datum specifies a string of dsize bytes pointed  to  by  dptr.	 Arbitrary  binary
       data,  as  well	as normal ASCII strings, are allowed.  The data base is stored in two files.  One file is a directory containing a bit map
       and has `.dir' as its suffix.  The second file contains all data and has `.pag' as its suffix.

       Before a database can be accessed, it must be opened by At the time of this call, the files file.dir and file.pag must  exist.	(An  empty
       database is created by creating zero-length `.dir' and `.pag' files.)

       Once open, the data stored under a key is accessed by and data is placed under a key by A key (and its associated contents) is deleted by A
       linear pass through all keys in a database may be made, in an (apparently) random order, by use of and The will return the first key in the
       database.  With any key will return the next key in the database.  This code will traverse the data base:
       for (key = firstkey(); key.dptr != NULL; key = nextkey(key))

Restrictions
       The  four  times  its  actual content.  Older UNIX systems may create real file blocks for these holes when touched.  These files cannot be
       copied by normal means without filling in the holes.

       The dptr pointers returned by these subroutines point into static storage that is changed by subsequent calls.

       The sum of the sizes of a key/content pair must not exceed the internal block size (currently 1024 bytes).  Moreover all key/content  pairs
       that hash together must fit on a single block.  The will return an error in the event that a disk block fills with inseparable data.

       The does not physically reclaim file space, although it does make it available for reuse.

Return Values
       Routines  that return a datum indicate errors with a null(0) dptr.  All functions that return an int indicate errors with negative values.
       A zero return indicates a successful completion.

																	   dbm(3x)
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy