>STUDENTS="User1 User2 ... UserN"
>cd /home
>for i in ${STUDENTS}; do
> find $i/ -maxdepth 1 -type -d \! -name career | xargs echo rm -rf
>done
I did a test on some test directories and it deleted the test users
directories. Any ideas?
Thanks,
Nathan