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 - Operating System
Using terminal to move files in a specific directory to a new location.
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="Alpha Spartan A" data-source="post: 1483108" data-attributes="member: 288478"><p>Hello, there guys. This is my first post here, and I just wanted to thank you all for the valuable information you have provided to me in the past prior to my registration. </p><p></p><p>Now, I have something that perplexes me. I am not a very proficient terminal user. In fact, I hardly use it at all, but I know it is a very powerful low level manipulation tool. I have read other forum posts regarding how to do this sort of thing, but after "cd"ing to the folder location where I perform a find a move operation, it tells me that I'm not using find properly. </p><p></p><p>What I am attempting to do is move all files from a specific directory into a new directory that have the filetype extension .flac. Here is the command the the error message I have been using and getting, respectively: </p><p>find -name *.flac -exec utility mv{} /Desktop/Beethoven \;</p><p>find: illegal option -- n</p><p>usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]</p><p> find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]</p><p></p><p>Again, I had already cd'd to the directory I need to move the files from. There are about 100 separate folders I am attempting to search at the directory level I'm at, each representing a different disc of music.</p><p></p><p>Okay, let me be really situationally specific. I downloaded 100 discs worth of music into my iTunes folder. The album name is "Ludwig van Beethoven - Complete Works [Brilliant Classics 100 CD Box] 2" and the full directory location to the album is "/Users/thomasjeffinger/Music/iTunes/iTunes Media/Music/Ludwig van Beethoven - Complete Works [Brilliant Classics 100 CD Box] 2". I want to search this folder's contained within this folder for files containing .flac extensions, and move them to a folder on my desktop called "Beethoven". What command in terminal would use to do that?</p><p></p><p>Thanks!</p><p></p><p>- Alpha Spartan A</p></blockquote><p></p>
[QUOTE="Alpha Spartan A, post: 1483108, member: 288478"] Hello, there guys. This is my first post here, and I just wanted to thank you all for the valuable information you have provided to me in the past prior to my registration. Now, I have something that perplexes me. I am not a very proficient terminal user. In fact, I hardly use it at all, but I know it is a very powerful low level manipulation tool. I have read other forum posts regarding how to do this sort of thing, but after "cd"ing to the folder location where I perform a find a move operation, it tells me that I'm not using find properly. What I am attempting to do is move all files from a specific directory into a new directory that have the filetype extension .flac. Here is the command the the error message I have been using and getting, respectively: find -name *.flac -exec utility mv{} /Desktop/Beethoven \; find: illegal option -- n usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] Again, I had already cd'd to the directory I need to move the files from. There are about 100 separate folders I am attempting to search at the directory level I'm at, each representing a different disc of music. Okay, let me be really situationally specific. I downloaded 100 discs worth of music into my iTunes folder. The album name is "Ludwig van Beethoven - Complete Works [Brilliant Classics 100 CD Box] 2" and the full directory location to the album is "/Users/thomasjeffinger/Music/iTunes/iTunes Media/Music/Ludwig van Beethoven - Complete Works [Brilliant Classics 100 CD Box] 2". I want to search this folder's contained within this folder for files containing .flac extensions, and move them to a folder on my desktop called "Beethoven". What command in terminal would use to do that? Thanks! - Alpha Spartan A [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Using terminal to move files in a specific directory to a new location.
Top