linux - Move directories Excluding file -


i have 40 directories , 1 shell.sh file in directory. want move directories other directory excluding shell.sh file. 40 directory move other directory , shell.sh don't move remain same directory. there solution ??

go mentioned directory , run in terminal:

find . -maxdepth 1 ! -path . -type d -exec mv '{}' destination_path \;  

this work directories spaces in name


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -