[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cp and mv commands (copying/moving only if file does not exist, regardle
cp and mv commands (copying/moving only if file does not exist, regardless of the time stamps, for use in a automatic script)
Thu, 27 Mar 2008 17:33:56 -0400
Thunderbird 184.108.40.206 (X11/20080226)
I need the deprecated mv and cp command parameter "--reply=" to stay.
I've noticed that the parameter "--reply=no" is "deprecated"
" cp: the --reply option is deprecated; use -i or -f instead "
My issue: In a script without user input, I want to copy a file to a
directory if only the file doesn't already exist, (I don't want to
overwrite anything), and regardless of the time stamp.
The only way I see to do this is with the deprecated parameter:
"cp -i --reply=no foo bar"
This way if bar exist, then foo won't overwrite it.
This message (including attachments) contains information which is
confidential and privileged. Unless you are the intended recipient, you
may not use, copy, disseminate or disclose to anyone the message or any
information contained in the message. Proteus submits this email with
the understanding that it will be held in the strictest confidence and
will not be used, in whole or in part, for any purpose other than the
evaluation of Proteus' qualifications without the prior written consent
of Proteus, Inc. If you have received the message in error, please
advise the sender by reply email and delete the message.
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
- cp and mv commands (copying/moving only if file does not exist, regardless of the time stamps, for use in a automatic script),
Darren DeHaven <=