LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help moving multiple folders to a new location (https://www.linuxquestions.org/questions/linux-newbie-8/help-moving-multiple-folders-to-a-new-location-4175615441/)

vagkouts 10-11-2017 03:58 AM

Help moving multiple folders to a new location
 
i have in a specific location a lot of folders with the prefix folder_2017xxxxxx. I want to move the folders with the prefix folder_201708xx only to a new location with one command.

i tried
mv "folder_201708*" /newlocation/
and it returns
mv: cannot stat `folder_201709*': No such file or directory

any idea?

pan64 10-11-2017 04:01 AM

try without "

vagkouts 10-11-2017 04:23 AM

Thanks pan for the reply,

i tried the command without the quotes and the output was

mv: cannot overwrite directory /newlocation/folder_201708xxxx

pan64 10-11-2017 05:29 AM

https://unix.stackexchange.com/quest...-files-with-mv


All times are GMT -5. The time now is 01:28 AM.