orabona/create_users/users.sh

15 lines
200 B
Bash
Executable File

#!/bin/bash
OLDIFS=$IFS
IFS=","
while read nom prenom
do
echo "Création de $prenom $nom"
id="${prenom:0:1}${nom}"
id=${id,,}
echo $id
./create_u.sh $id
done < $1
IFS=$OLDIFS