orabona/create_users/users.sh

16 lines
209 B
Bash
Raw Permalink Normal View History

2014-01-07 15:55:06 +00:00
#!/bin/bash
OLDIFS=$IFS
IFS=","
2020-09-18 12:35:37 +00:00
while read nom
2014-01-07 15:55:06 +00:00
do
2020-09-18 12:35:37 +00:00
echo "Création de $nom"
2014-01-07 15:55:06 +00:00
id="${prenom:0:1}${nom}"
id=${id,,}
echo $id
2020-09-18 12:35:37 +00:00
./create_u.sh $id
#./add_mail.sh $id
2014-01-07 15:55:06 +00:00
done < $1
IFS=$OLDIFS