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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -