bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature request: no overwrite on cp, mv


From: Mark Rose
Subject: feature request: no overwrite on cp, mv
Date: Sun, 8 Apr 2007 01:20:58 -0600
User-agent: KMail/1.9.6

Greetings,

I'd like a new, relatively easy to implement feature in cp and mv. Currently, 
the --interactive option prompts before overwriting an existing file. There 
is also --update, that will only overwrite if the source file is newer. 
However, there is not an option to noninteractive _not_ overwrite older 
existing files.

I have a directory into which new files are continually being saved, and from 
which files older than a year are being moved. When old files have been moved 
out, users may save new files with the same name as archived files. 
Currently, I use find to find the files, then call a shell script to check if 
the file already exists, and if not, then move the file.

This option would also be very handy when merging directory contents without 
overwriting existing files.

Do the developers see --no-overwrite as a valuable addition?

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]