I recently extracted a ZIP file that I expected to contain a path hierarchy but turned out to be a flat archive of files with backslashes in the filenames. So I ended up with something like:
$ ls -1d ./* SomeFile.txt Foo\OtherFile.png Bar\Baz\Faz\foo.txt
All of these are just siblings in the same single directory. In my actual case, there are several hundred files, so making the directories and moving things by hand would be tedious at best.
My current plan is to write a small Python program to put them all where they belong, but I was wondering, is there a quicker easier way to do it from the command line?