DEST_DIR=your_desination_directory
SOURCE_DIR=your_source_directory
for
file in `ls $SOURCE_DIR`
do
fn=basename $file
if [ ! -f $DEST_DIR/$fn ]
then
cp $file $DEST_DIR/$fn
fi
done
Hope
it helps.
Allan
-----Original Message-----
From: Sujatha Madan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 10:24 PM
To: Multiple recipients of list ORACLE-L
Subject: Unix HelpHi,Sorry for the slightly non-Oracle post.I am after a UNIX code snippet that will help me copy archive logs to another directory BUT not if they already exist. So if only 2 archive logs are generated between script runs only the two new ones should copy. I know I can do this using sysdate - "time interval" but I am trying to avoid that.Thanks in advance,Sujatha Madan.
______________________________________________________________________________
This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Copying, forwarding or distributing this message by persons or entities other than the addressee is prohibited. If you have received this email in error, please contact the sender immediately and delete the material from any computer. This email may have been monitored for policy compliance. [021216]
