Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Folder extractor/merger?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1909182" data-attributes="member: 110816"><p>Assuming that you've named the folders in a way through which <strong>find</strong> gives you the correct order, just adding "-f" to the <strong>cp</strong> command will ensure that the same file found later on will replace the already existing/copied file.</p><p></p><p>So the 1.txt from c will overwrite the previously copied over 1.txt from a in that case.</p><p></p><p>The limitation of this command is that you lose any subfolders and their structure, you will just get a flat list of files. There are ways to control that of course with a script and arguments to find..</p><p></p><p>Let me see what I can do..</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1909182, member: 110816"] Assuming that you've named the folders in a way through which [B]find[/B] gives you the correct order, just adding "-f" to the [B]cp[/B] command will ensure that the same file found later on will replace the already existing/copied file. So the 1.txt from c will overwrite the previously copied over 1.txt from a in that case. The limitation of this command is that you lose any subfolders and their structure, you will just get a flat list of files. There are ways to control that of course with a script and arguments to find.. Let me see what I can do.. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Folder extractor/merger?
Top