I have folders in scenery/terrain that contain folders called terrain and objects. These folders have folders with data files. How do I move all of the contents scenery/terrain/[name]/terrain to scenery/terrain, and the contents of scenery/terrain/[name]/objects to scenery/objects?
There is no recursive option for the
mv command, so if there are directories inside the directories you want to move, you'll have to use
cp. How about this one:
cp -R scenery/terrain/*/terrain/* scenery/terrain/ cp -R scenery/terrain/*/objects/* scenery/objects/
Then when you're sure that worked:
rm -rf scenery/terrain/*/terrain rm -rf scenery/terrain/*/objects