The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
directory tree ravi raj kumar Shell Programming and Scripting 3 01-24-2008 01:08 PM
Recursively copy only specific files from a directory tree sharpsharkrocks Shell Programming and Scripting 3 01-07-2008 02:16 PM
Read from fileList.txt, copy files from directory tree fxvisions Shell Programming and Scripting 1 10-30-2007 05:17 PM
directory as tree anything2 High Level Programming 2 03-01-2007 09:38 AM
Directory tree search??? solvman High Level Programming 3 09-28-2001 02:27 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-15-2008
briandanielz briandanielz is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 5
Move all files in a directory tree to a signal directory?

Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.

Thanks in advance-
Brian-
  #2 (permalink)  
Old 06-15-2008
robotronic's Avatar
robotronic robotronic is offline Forum Advisor  
Can I play with madness?
  
 

Join Date: Apr 2002
Location: Italy
Posts: 370
Suppose you have a directory structure like this:

Code:
dir1
|____dir2
| |____file2a
| |____file2b
|____dir3
| |____dir4
| | |____file4a
| | |____file4b
| |____file3a
| |____file3b
|____file1a
|____file1b
If you mean moving all files "fileXX" into a single directory you can try this:

Code:
find dir1 -type f -exec mv {} /my/directory \;
  #3 (permalink)  
Old 06-15-2008
briandanielz briandanielz is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 5
Thanks!

Last edited by briandanielz; 06-15-2008 at 06:36 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0