<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Something recursive? For each subdirectory:</span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>1) cd to it</span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>2) call myself</span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent;
font-style: normal;"><span>3) move all its files to parent</span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>4) cd back to parent</span></div><div style="color: rgb(0, 0, 0); font-size: 15.555556297302246px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>5) rm subdirectory</span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> R. Brent Clements <rbclemen@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> KWLUG discussion <kwlug-disc@kwlug.org> <br> <b><span
style="font-weight: bold;">Sent:</span></b> Tuesday, June 18, 2013 11:55:44 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [kwlug-disc] Need some advice/assistance on a script<br> </font> </div> <div class="y_msg_container"><br><div id="yiv5648810624"><div dir="ltr">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).<br>
</div></div><br>_______________________________________________<br>kwlug-disc mailing list<br><a ymailto="mailto:kwlug-disc@kwlug.org" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br><a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br><br><br></div> </div> </div> </div></body></html>