[COLUG] gawk question

Nathan Overley noverley at sm.k12.oh.us
Sat Aug 19 11:33:55 EDT 2006


>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






More information about the colug432 mailing list