bash-exercises/cooler_adduser.sh

8 lines
108 B
Bash
Executable File

#!/bin/bash
CMD=$(which useradd)
for USER in "$@"; do
$CMD -m $USER
echo "$USER:$USER" | chpasswd
done