[kwlug-disc] Need some advice/assistance on a script

Phil Longstaff phil.longstaff at yahoo.ca
Tue Jun 18 12:11:04 EDT 2013

Something recursive?  For each subdirectory:

1) cd to it
2) call myself
3) move all its files to parent
4) cd back to parent
5) rm subdirectory

 From: R. Brent Clements <rbclemen at gmail.com>
To: KWLUG discussion <kwlug-disc at kwlug.org> 
Sent: Tuesday, June 18, 2013 11:55:44 AM
Subject: [kwlug-disc] Need some advice/assistance on a script

I need to do something dramatically destructive.  I want to take a large directory tree of folders, and collapse them all down to their root folder.  File collisions are irrelevant.  How would you guys do this? (assume for the moment that you would).

kwlug-disc mailing list
kwlug-disc at kwlug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20130618/11a46d1e/attachment.html>

More information about the kwlug-disc mailing list