man cp says it’s even simpler:

     -n    Do not overwrite an existing file.  (The -n option overrides any 
previous -f or -i
           options.)


-David Schwartz




> On Jul 5, 2025, at 9:37 PM, David Schwartz <newslett...@thetoolwiz.com> wrote:
> 
> some variation of this will probably work:
> 
> find . *.* -exec [!exists xyzzy/{}] && cp {} xyzzy ;
> 
> -David Schwartz
> 
> 
> 
>> On Jul 5, 2025, at 8:42 AM, Michael via PLUG-discuss 
>> <plug-discuss@lists.phxlinux.org> wrote:
>> 
>> Simple question: How does one copy all files except those exiting already?
>> ---------------------------------------------------
>> PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> 

---------------------------------------------------
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Reply via email to