Moving folders

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Moving folders
# 1  
Old 11-29-2010
Moving folders

I'm new at this, so bare with me.

I'm looking to move some folders, but keep the tree intact.

Example:

I have hundreds of folders in one directory (parent directory). In each folder there is a one folder called "source" and about 10 files. I want to move all the "Source" directories from each folder and place them in a different location, but I want to keep the same locations for each "source" folder. Basically, take out each "source" folder and place it in the same path, but in another location

Sounds too difficult for windows or Dos. So I'll try it in Linux.

thanks in advance
# 2  
Old 11-29-2010
Please give more clue
the file you want to move are like

Code:
/parent/*/source/*

where do want to move them ?
# 3  
Old 11-29-2010
under "f:\5_images Read" there are hundreds of folders. Each folder contains one folder called "source" I would like to move them to "F:\0_Source" folder and keep their paths. I say move because that's my ultimate goal, but copying them first, then verify that it has been done, then delete all the source directories would be my ideal situation. NTFS permission would then be changed on all "source" directories.
# 4  
Old 11-29-2010
Run a DOS command consol
and enter
Code:
copy /?

It will display the available options you can use to run this DOS command line to fit your needs.

(By the way, we are on a unix forum, and you are turning into a unix question what is in your case a windows one ...)

Last edited by ctsgnb; 11-29-2010 at 03:14 PM..
# 5  
Old 11-30-2010
Quote:
Originally Posted by ctsgnb
(By the way, we are on a unix forum, and you are turning into a unix question what is in your case a windows one ...)
True, but
Quote:
Originally Posted by gnpower
Sounds too difficult for windows or Dos. So I'll try it in Linux.
@gnpower: Is there a Linux installation available, or will you use an Live-CD? Is this an external disk or internal?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Moving files and folders to another folder

I recently bought Synology server and realised it can run scripts. I would need fairly simple script which moves all files and folders from ARCHIVE folder to WORKING folder. I would also need to maintain folder structure as each of the folders may contain subfolders. How would I go about it as I am... (1 Reply)
Discussion started by: ###
1 Replies

2. Shell Programming and Scripting

Script for moving series of sub folders

Hello, I'm new to this forum. Did a search but I didn't quite find what I was looking for. This is probably a fairly easy request but I'm just not sure how to accomplish this. I have a folder structure that looks something like this:/names/company1/archive /names/company1/newarchive ... (4 Replies)
Discussion started by: vipertech
4 Replies

3. UNIX for Dummies Questions & Answers

Archive folders and sub folders

Hi Can i archive folder and folders in with the tar command My files are located in subfolders Eg: Folder1/Folder1_1/*.pdf Folder1/Folder1_2/*.pdf Folder1/Folder1_3/*.pdf so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies

4. Shell Programming and Scripting

Moving files to folders and rename

Hello! I am new to this. I have many files from b_ap00 to b_ap80, and I need to move them to folder 00 to 80 respectively, where b_ap00 is in folder 00, b_ap01 is in folder 01. On top of this, I need to rename the file once they are inside the folder to b_ot, and subsequently run it (ifort -o... (8 Replies)
Discussion started by: krustytherusty
8 Replies

5. UNIX for Dummies Questions & Answers

moving mail between IMAP folders

Hello all, I have a Cyrus IMAP server running on HP-UX. I have a requirement to run a script every night at midnight, which will take all the mail (read and unread mail) from one IMAP folder, and move it into a different IMAP folder. Both the source and destination IMAP folders belong to the... (1 Reply)
Discussion started by: lupin..the..3rd
1 Replies

6. Shell Programming and Scripting

moving files from one folder to many folders

I have a more than 10 K files in a folder. They are accumulated in a period of more than an year (Say from 13th July 2010 to 4th June 2011). I need to perform housekeeping on this. The requirement is to create a folder like 13Jul2010,14July2010,......3June2011,4June2010 and then from the main... (2 Replies)
Discussion started by: realspirituals
2 Replies

7. UNIX for Dummies Questions & Answers

Searching for folders/parent folders not files.

Hello again, A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x. I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies

8. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

9. Ubuntu

Moving folders with script

Hi All, I am new to Forums, as i am struggling for one script i am launched here. I need to move more than 60,000+ folders in 1,00,000 folders to another server. I have the list of folders which should be moved. can anybody help me in sharing with the script for the above requirement. ... (4 Replies)
Discussion started by: ghimakiran
4 Replies

10. Shell Programming and Scripting

moving multiple folders/files in subversion using bash script

Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum. I have already checked in folders in subversion named HTT01,... HTT21.. and have files in each folder like below: HTT01/HTT01_00000.hex HTT01/HTT01_00000_fb_result.hex... (2 Replies)
Discussion started by: ravishan21
2 Replies
Login or Register to Ask a Question