I'm quite new to Linux and specially to the shell and all of its commands. My goal is to move some files in every directory to another directory. To be more clear, I have this:
/DIR - /dir1 - file1 - file2 - ... - /dir2 - file1 - file2 - ... - ... - /dirn - file1 - file2 - ...
What I need is to move all the file1 and file2 into a new dir in its own dir, so that I get something like this:
/DIR - /dir1 - /mydir - file1 - file2 - ... - /dir2 - /mydir - file1 - file2 - ...
For the sake of the question I have to say that dir names are not like "dir1", "dir2" and so on, but are arbitrary names. Files, however, are always named the same (models.py and wrappers.py).
Thanks for your help.
P.S.: I'd really appreciate if you could explain me your answers, in order to learn a bit more about Linux and not just copy-pasting the code.