Nuacht

I need to create a folder based on the string inside the parentheses and move the file to that new folder. One problem is that some files have more than one value in the parentheses.
Let's say I have a directory called /foo with an undertermined # of subdirectores.I'd like a way to move the contents of each directory under /foo to /bar so I just have all of the files in one ...