04-23-2009
Homework?
For the first, look into character classes and how to invert them.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
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
6. UNIX for Dummies Questions & Answers
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
7. UNIX for Dummies Questions & Answers
Hey Guys,
I have directory with thousands of files, I need to copy only march data.
can any one please Help..........
Thanks,
Uttam N (4 Replies)
Discussion started by: Uttamnsd
4 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Below is the script i have but i would like simplified but still do the same job.
I need a script to copy files not directories or sub-directories into a existing or new directory. The files, if have the same name but different extension; for example 01.doc 01.pdf then only copy the .doc file. ... (1 Reply)
Discussion started by: Gilljambo
1 Replies
uuto(1) General Commands Manual uuto(1)
NAME
uuto, uupick - public UNIX system to UNIX system file copy
SYNOPSIS
[options] source-files destination
system]
DESCRIPTION
sends source-files to destination. uses the facility to send files (see uucp(1)), while allowing the local system to control the file
access. A source-file name is a path name on your machine. Destination has the form:
where system is taken from a list of system names that knows about (see in uucp(1) manual entry). user is the login name of someone on the
specified system.
recognizes the following options:
Copy the source file into the spool directory immediately,
and send the copy.
Send mail to the requester when the copy is complete.
The files (or sub-trees if directories are specified) are sent to PUBDIR on system, where PUBDIR is the UUCP public directory Specifically
the files are sent to
PUBDIR
The recipient is notified by electronic mail when the files arrive.
accepts or rejects the files transmitted to the recipient. Specifically, searches PUBDIR for files destined for the user. For each entry
(file or directory) found, the following message is printed on the standard output:
file-name] dirname]
then reads a line from the standard input to determine the disposition of the file:
<new-line> Go on to next entry.
Delete the entry.
Move the entry to named directory
dir (current directory is default). Note that, if the current working directory is desired for dir, do specify any
parameter with A construction such as is erroneous, and results in loss of data.
Same as except move all the files sent from system.
Print the contents of the file.
Stop.
EOT (control-D) Same as
Escape to the shell to execute
command.
Print a command summary.
invoked with the option searches only the PUBDIR for files sent from system.
WARNINGS
To send files that begin with a dot (such as the filename must contain a corresponding dot. For example: and are correct, whereas and are
incorrect.
FILES
PUBDIR public directory
SEE ALSO
mail(1), uuclean(1M), uucp(1), uustat(1), uux(1).
Tim O'Reilly and Grace Todino,
O'Reilly & Associates, Inc. USA.
Grace Todino and Dale Dougherty,
O'Reilly & Associates, Inc. USA.
STANDARDS CONFORMANCE
uuto(1)