Flatten a directory structure
Posted by Mike J L dot com [HTML][XML][PERM][FULL] on 26 February 2013, 10:51 am
Flatten a directory structure: There may be times when you want to consolidate all the files in a directory and its sub-directories (or a folder and its sub-folders) into a single directory or folder. For example, you may have a folder with sub-folders for years, and other sub-folders in each year folder for months, and you may want to move files in the month folders all to the top level.

Doing this manually is a complex and time-consuming process. While you might be able to do this by using a search - for example, if all the files are, say, Excel files, you can search for Excel files in the top folder, then just copy them all to a new folder - if there are lots of different types of files, this wouldn't make things easier.

Fortunately, there's a way to do this from a command line. On the BedroomLAN blog, Alexios presents two commands that will do this:


find -type f -print0 | xar ...

· Older Entries >>


Updated Today:
A Green Mushroom [HTML] [XML] [FULL]
Engadget Gaming [HTML] [XML] [FULL]
Eve Bloggers [HTML] [XML] [FULL]
GamesRadar [HTML] [XML] [FULL]
Massively Overpowered [HTML] [XML] [FULL]
mmocam! [HTML] [XML] [FULL]
MmoQuests.com [HTML] [XML] [FULL]
Morphisat's Blog [HTML] [XML] [FULL]
Reign of Gaming [HTML] [XML] [FULL]
Rock Paper Shotun [HTML] [XML] [FULL]
Tobold [HTML] [XML] [FULL]
Updated this Week:
Mystic Worlds [HTML] [XML] [FULL]
The Instance [HTML] [XML] [FULL]
Van Hemlock [HTML] [XML] [FULL]
Welshtroll [HTML] [XML] [FULL]
Updated this Month:
Chimps in Space [HTML] [XML] [FULL]
Gestalt Mind [HTML] [XML] [FULL]
Lets Not Have a Breakdown [HTML] [XML] [FULL]
Raph Koster [HTML] [XML] [FULL]
Troll Racials are Overpowered [HTML] [XML] [FULL]
Zen of Design [HTML] [XML] [FULL]