osx - linux move files inside sub folder to current directory -


hi need command linux , mac os move files subfolders current one.

i have main folder (04) containing other folders ex. 01145032 contains jpgs , other files. have move files in 04 folder thanks

you can use find command:

cd 04 find . -type f -mindepth 2 -exec mv '{}' . \; 

-mindepth 2 make sure files sub directories found.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -