04-07-2009
Find & Copy Selected files to another Directory
I am wanting to find files within a directory that are over a certain number of days old and copy them to another directory. And unfortunately not having much luck.......is someone able to help.
Would also like to add that there are literally thousands of files that I am wanting to copy in one hit.
Thanks
Last edited by hellfyre; 04-07-2009 at 09:29 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
can u please help me in finding all ksh file in directory and including all subdirectories and then copy those files into another directory.
thanks in advance
-bali (4 Replies)
Discussion started by: balireddy_77
4 Replies
2. Shell Programming and Scripting
Hi All,
I am new to UNIX. I will be thankful if some one helps me.
I have to write a shell script for one of the requirement.
I have files created from Jan 2006 to March 2008.
My requirement is to write a script in such a way that
1) To find and copy(not Moving) the files created in the... (2 Replies)
Discussion started by: manas6
2 Replies
3. Shell Programming and Scripting
hi all,
can i get script find file & copy that file with path
for an example
sourse : /home/abc/
destination : /home/backup/
files which need to find : tmp*
copy these files with its absolute path inside
like :- /home/abc/x/y/z/tmp.txt to /home/backup/date/x/y/z/tmp.txt
thanks in... (15 Replies)
Discussion started by: jagnikam
15 Replies
4. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
5. Shell Programming and Scripting
Hi Everybody,
i want a samll help to write a script.
i had source location with :/user/bin (bin contains subdirectories with like names emails etc and had several files in each subdirectory)
and target location with :/usr/scripts (having same subdirectories names and had some files)... (1 Reply)
Discussion started by: Reddy482
1 Replies
6. UNIX for Dummies Questions & Answers
Ok i have three directories
Destination - /u/dir1 (has subdirectories dir2 which also has subdirectory dir3)
Source1 - /u/test/files/dir1/dir2/dir3
Source2 - /u/out/images/dir1/dir2/dir3
What i would like to do is copy everything from Source1 and Source2 into the Destination directory.... (3 Replies)
Discussion started by: ziggy25
3 Replies
7. Shell Programming and Scripting
I need to write a perl script to search for a specific set of numbers that occur after a series of words but before another. Specifically, I need to locate the phrase today at the summit, then immediately prior to the words tonnes/day copy the number that will be between 100 and 9,999, for example,... (1 Reply)
Discussion started by: libertyforall
1 Replies
8. Shell Programming and Scripting
I am trying to come up with a script that will search for selected files and then email them to me.
For example, say I have a directory that has the following files:
AA_doug.txt
AA_andy.txt
BB_john.txt
APPLE_mike.txt
GLOBE_ed.txt
GLOBE_tony.txt
TOTAL_carl.txt
what is the best way to... (2 Replies)
Discussion started by: coach5779
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: kraljic
3 Replies
10. Shell Programming and Scripting
Hi,
I want a simple line of code that will compress files within a directory specified (parameter) and its subdirectories and also i want to remove files which are exactly 365 days old from the sysdate after this compression.
Please help.
Thanks,
JD (8 Replies)
Discussion started by: Jesshelle David
8 Replies
LEARN ABOUT HPUX
ftpservers
ftpservers(4) Kernel Interfaces Manual ftpservers(4)
NAME
ftpservers - ftpd virtual hosting configuration specification file
SYNPOSIS
DESCRIPTION
The file is used to tell which set of virtual domain configuration files that the server should use. With support, wu-ftpd has the ability
to use separate configuration files for each virtual domain.
For a virtual host, configuration files can be placed into a separate virtual domain directory. The directory path and the virtual host IP
address that is to use those configuration files is listed in the file. The actual configuration files put into the virtual domain direc-
tory MUST be named as follows:
virtual domain's access file.
restrict the accounts that can use the web server."
SITE GROUP and SITE GPASS support."
allow or deny usernames access to that virtual server."
customize conversions available in the virtual domain."
You do not need to put every file in each of the virtual domain directories. If you want a set of domains to use the master copy of a
file, for example, the file, then do not include that file in those virtual domain directories. In that case the default master copy will
be used.
The file names must match those listed above. If you misspell any of them or name them something else, the server WILL NOT find them and
the master copy of them will be used instead.
ftpservers File Format
There are two fields to each entry.
For example:
When an ftp client connects to the server, tries to match the IP address the ftp client connected to with one found in the file.
If a match is found the path to the specified directory containing the configuration files for that specific domain is returned. The
server uses any configuration files in that directory.
If a match is not found, or an invalid directory path is encountered, default paths to the configuration files are used. The use of in the
example above fails the check for a specific directory and the master configuration files will be used.
Either the actual IP address or a specific hostname can be used to specify the virtual domain. It is better to specify the actual IP of
the virtual domain as it reduces the need for a domain lookup and eliminates DNS security related naming issues.
Comment lines are depicted with a # sign. Both comment lines and blanklines are ignored.
FILES
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M) , ftpaccess(4) , ftpconversions(4) , ftphosts(4).
ftpservers(4)