Let's say I have a path like this/x/xx/fileI want to move all files inside sub folders of /x/ to /x/ at the same time. Is this possible?I'm on Ubuntu 16.04.The subfolders have different names, and I want to move all files inside a subfolder no matter the depth, to /x/. Also it's possible that I'll have spare files inside /x/ that are not in any sub folder. No files should go above /x/ no matter what. 
Move all files inside sub folders to parent folder
files;rename
Move to target folder and execute:find . -mindepth 2 -type f -print -exec mv {} . \;with -mindepth 2 it will search recursively without including the current directory.