#!/bin/bash # a cheesy bash script for creating vast numbers of users from # a single text file. File must be in this format: # username password # with one entry per line. # nice security, eh? echoing out the password to the screen? # I guess I'll copyright this Jeremy Anderson, GPL v2 # it's so damn simple, I just want it world available so # nobody can ever patent it. Prior art baby. # written August 23rd, 2001. for i in $(cat studentlist); do username=$(echo $i | awk '{print $1}'); pass=$(echo $i | awk '{print $2}'); echo "USERNAME = $username" echo "PASSWD = $pass" done