LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   moving files and folders thru command line (https://www.linuxquestions.org/questions/linux-general-1/moving-files-and-folders-thru-command-line-146902/)

JROCK1980 02-16-2004 06:39 PM

moving files and folders thru command line
 
I have mounted a partition that has music on it. I have a /nt/d/FTP/music/
This is where the music is. Now in the music folder is the songs in folders by their artists. I have a lot of them and I dont want to keep doing all these cp. Is there a command that I can do to just move all these at once?

SciYro 02-16-2004 06:49 PM

i dont know if theres a single comand but a bash script might be able to do it (i aint good at scriptsing so i dont knwo how it would be done),

mybe try (hmmm i think that is jsut 1 comand?)

mv /nt/d/FTP/music/*/* /music/werever/you/want

synaptical 02-16-2004 06:55 PM

cp with the -R (recursive) option will work.


All times are GMT -5. The time now is 07:45 PM.