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

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -