Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help in copying multiple files from th directory Post 302546387 by Uttamnsd on Thursday 11th of August 2011 06:01:37 AM
Old 08-11-2011
Thanks!!!!!!!!!!!!!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copying files from one directory to Other

Hi UNIX Gurus, Could please help me out regarding following situation. I am copying some files from one directory to other directotry using following command. cp /var/tmp/*date*.gz /var/tmp/user/ Problem: Once the copy has completed, I need to check whether all the files (including... (3 Replies)
Discussion started by: satishkeshetty
3 Replies

2. UNIX for Dummies Questions & Answers

Help with cron: copying all files in a directory to another...

Here's what I have thus far: cp -r /home/mydom/public_html/products/Widget/ /home/mydom/public_html/ This works fine but suppose the folder in public_html has a different name (Main_Widget). The cron above needs to copy the files within the folder (Widget) instead of the folder itself. How... (1 Reply)
Discussion started by: ashleyquick
1 Replies

3. Shell Programming and Scripting

Synchronization in copying multiple files to a directory

Hi Friends, My goal is to copy 1000 of files of same filesize simultaneously to a directory. i.e i do multiple copies into a same directory. What i feel here is, at some 1000th iteration, few transfers ends in advance before some transfers start. I need to get synchronized file transfers so that... (1 Reply)
Discussion started by: amio
1 Replies

4. Shell Programming and Scripting

Copying files from one directory into another.

Could someone please tell me if there is a command similar to head or tail that can be used on directories. I want to select a given number of files from a directory and copy them into another directory. But I found out I can't use head as it doesn't (or I don't know how yet!) work on directories.... (4 Replies)
Discussion started by: Krush187
4 Replies

5. Shell Programming and Scripting

Copying files to a directory

Hi I have a few questions. I am trying to copy a file to a directory. I need to copy files that do not end in numbers, for example, into a directory. This is what I tried so far. cp filename directorytowhereIwannacopy but it says it can't copy to a directory. I need to copy many files into one... (2 Replies)
Discussion started by: #moveon
2 Replies

6. Shell Programming and Scripting

Find a directory and copying files to it

Hi all, wondering if someone would be able to help with a little query I have. I currently have a script which copies everything in a specific directory to a number of other directories depending on a variable. The problem I have is the destination directories vary (in and incoming directories)... (3 Replies)
Discussion started by: JayC89
3 Replies

7. UNIX for Dummies Questions & Answers

No such file or directory error while copying files

Hi, I need to copy files from one dir to another dir. The list of filesnames to be moved are in a file called files2cp.log Script: #!/bin/ksh exec 0</home/amdocs/files2cp.log while read LINE do cp -i /iccs33/attach/"$LINE" /iccs30/attach/"$LINE" done The output is "No such... (6 Replies)
Discussion started by: srinirsr
6 Replies

8. UNIX for Dummies Questions & Answers

copying multiple files

We want to copy the data from all the files SPR_201103* to AMGEN. We tried the following command cp $AGENT_DATA/amgen/SPR_201103* $AGENT_DATA/AMGEN amgen is directory . AMGEN is file we are trying to creat. for SPR_201103* 10 files are there Please help me to how to achive this.... (2 Replies)
Discussion started by: ajaykumarkona
2 Replies

9. Shell Programming and Scripting

Copying files to a directory

Hi, I am newbie to unix scripting, need a help in the doubt i have. It is " when files are copied to a directory using cp command, they are arranged by default according to the file name, is there anyway where the files that are copied be arranged with respect to their size, with using the sort... (5 Replies)
Discussion started by: pundalik
5 Replies

10. Shell Programming and Scripting

Copying files from parent directory only

Hello, Please can someone assist on a issue I am having. I want to find specific files in the parent directory only that have been modified over the last 2 days and copy them to another location. NOTE: The version of AIX I am using does not have MAXDEPTH. I have currently written the... (3 Replies)
Discussion started by: Dolph
3 Replies
UUCP(1) 						      General Commands Manual							   UUCP(1)

NAME
uucp - unix to unix copy SYNOPSIS
uucp [ -acCdfmr ] [ -nuser ] [ -ggrade ] [ -sspool ] [ -xdebug ] source-file.... destination-file DESCRIPTION
Uucp copies files named by the source-file arguments to the destination-file argument. A file name may be a pathname on your machine, or may have the form system-name!pathname where `system-name' is taken from a list of system names that uucp knows about. Shell metacharacters ?*[] appearing in the pathname part will be expanded on the appropriate system. Pathnames may be one of:(1) a full pathname; (2) a pathname preceded by ~user; where user is a userid on the specified system and is replaced by that user's login directory; (3) a pathname prefixed by ~, where ~ is expanded into the system's public directory (usually /usr/spool/uucppublic); (4) a partial pathname, which is prefixed by the current directory. If the result is an erroneous pathname for the remote system, the copy will fail. If the destination-file is a directory, the last part of the source-file name is used. Uucp preserves execute permissions across the transmission and gives 0666 read and write permissions (see chmod(2)). The following options are interpreted by uucp. -a Avoid doing a getwd to find the current directory. (This is sometimes used for efficiency.) -c Use the source file when copying out rather than copying the file to the spool directory. (This is the default.) -C Copy the source file to the spool directory and transmit the copy. -d Make all necessary directories for the file copy. (This is the default.) -f Do not make intermediate directories for the file copy. -ggrade Grade is a single letter/number; lower ASCII sequence characters will cause a job to be transmitted earlier during a particular con- versation. Default is `n'. By way of comparison, uux(1C) defaults to `A'; mail is usually sent at `C'. -m Send mail to the requester when the copy is complete. -nuser Notify user on remote system (i.e., send user mail) that a file was sent. -r Do not start the transfer, just queue the job. -sspool Use spool as the spool directory instead of the default. -xdebug Turn on the debugging at level debug. FILES
/usr/spool/uucp - spool directory /etc/uucp/* - data and configuration files SEE ALSO
uux(1C), mail(1) D. A. Nowitz and M. E. Lesk, A Dial-Up Network of UNIX Systems. D. A. Nowitz, Uucp Implementation Description. WARNING
The domain of remotely accessible files can (and for obvious security reasons, usually should) be severely restricted. You will very likely not be able to fetch files by pathname; ask a responsible person on the remote system to send them to you. For the same reasons you will probably not be able to send files to arbitrary pathnames. BUGS
All files received by uucp will be owned by the uucp administrator (usually UID 5). The -m option will only work sending files or receiving a single file. (Receiving multiple files specified by special shell characters ?*[] will not activate the -m option.) At present uucp cannot copy to a system several "hops" away, that is, a command of the form uucp myfile system1!system2!system3!yourfile is not permitted. Use uusend(1C) instead. When invoking uucp from csh(1), the `!' character must be prefixed by the `' escape to inhibit csh's history mechanism. (Quotes are not sufficient.) Uucp refuses to copy a file that does not give read access to ``other''; that is, the file must have at least 0444 modes. 7th Edition April 24, 1986 UUCP(1)
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy