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 <[email protected]> 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
>> <[email protected]> wrote:
>>
>> Simple question: How does one copy all files except those exiting already?
>> ---------------------------------------------------
>> PLUG-discuss mailing list: [email protected]
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list: [email protected]
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss