[kwlug-disc] Need some advice/assistance on a script
CrankyOldBugger
crankyoldbugger at gmail.com
Tue Jun 18 12:14:27 EDT 2013
I do this all the time in the Windows world, but essentially what I do is
pipe a DIR (or in this case, LS) listing to a text file, open that file up
in an editor and make a script out of by throwing in the correct move or
copy statements. I'm sure you can do the same thing in Linux easily enough.
You might even want to throw a few PAUSE statements (or whatever the Linux
equivalent is) in at various points to give yourself an emergency exit if
things go wrong.
On 18 June 2013 11:55, R. Brent Clements <rbclemen at gmail.com> wrote:
> 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
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20130618/10b4f858/attachment.htm>
More information about the kwlug-disc
mailing list