My solution has always been:
#for USER in `ls -1 /Users | sed -e '/Shared/d' -e '/Deleted Users/d' -e
'/.localized/d'`
Sean
My solution has always been:
#for USER in `ls -1 /Users | sed -e '/Shared/d' -e '/Deleted Users/d' -e
'/.localized/d'`
Sean
Hi Sean,
Interesting, how would we integrate this line into the script we have?
Thanks,
Don
You can also use the "-v" flag with grep.
j
--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436
You'd just change your for loop.
for i in $(/bin/ls /Users | sed -e '/Shared/d' -e '/Deleted Users/d' -e
'/.localized/d'); do
/usr/bin/ditto /tmp/usercrap /Users/$i/
/usr/sbin/chown -R $i:staff /Users/$i/
done
exit 0
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.