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
macOS & iOS Developer Playground
macOS - Development and Darwin
Move files in a list...
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="scathe" data-source="post: 1093821" data-attributes="member: 81672"><p>Ok I will stop tormenting you, there is another option. Look at the following script:</p><p>[code]</p><p>for i in `cat list`</p><p>do</p><p>mv `echo $i` <destination>/`echo $i`</p><p>done</p><p>[/code]</p><p></p><p>Keep in mind you need to save that in a file and add execute permissions with chmod +x. I'm not sure how comfy you are with scripting, so let me know if you need additional info as to how to run this.</p></blockquote><p></p>
[QUOTE="scathe, post: 1093821, member: 81672"] Ok I will stop tormenting you, there is another option. Look at the following script: [code] for i in `cat list` do mv `echo $i` <destination>/`echo $i` done [/code] Keep in mind you need to save that in a file and add execute permissions with chmod +x. I'm not sure how comfy you are with scripting, so let me know if you need additional info as to how to run this. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Move files in a list...
Top