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 - Autoloader issue not returning Class -

python - Getting next two indexes regardless of current index -

ruby - Prevent Custom Validation Error on Association -