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 -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -