Linux 大量建制帳號

http://phorum.study-area.org/viewtopic.php?t=27276 http://linux.vbird.org/linux_basic/0410accountmanager.php#manual_amount
for line in `cat account.txt` do account=`echo $line | cut -d : -f 1` passwd=`echo $line | cut -d : -f 2` useradd -m $account echo $account:$passwd | chpasswd done account.txt 格式: account:password