LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2017, 03:58 AM   #1
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
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?
 
Old 10-11-2017, 04:01 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,617

Rep: Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607
try without "
 
Old 10-11-2017, 04:23 AM   #3
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks pan for the reply,

i tried the command without the quotes and the output was

mv: cannot overwrite directory /newlocation/folder_201708xxxx
 
Old 10-11-2017, 05:29 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,617

Rep: Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607Reputation: 5607
https://unix.stackexchange.com/quest...-files-with-mv
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple DNS configured at multiple ISPs location for high availability shaikhmastan Linux - General 6 11-10-2013 06:56 PM
Moving Folders Bladez711 Linux - Newbie 2 09-14-2009 09:53 AM
Moving a server from one location to another khb Linux - Server 7 07-29-2008 08:38 PM
moving folders Vyker Slackware 4 09-04-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration