From 1abd7523c8bbd6f9df77af4a694eb11be973da17 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Wed, 15 Sep 2021 11:07:08 +0200
Subject: [PATCH] add mail_to_wifi_account.sh: to request wifi account at the
 ENS

---
 forms/mail_to_wifi_account.sh | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 forms/mail_to_wifi_account.sh

diff --git a/forms/mail_to_wifi_account.sh b/forms/mail_to_wifi_account.sh
new file mode 100644
index 0000000..6a112b2
--- /dev/null
+++ b/forms/mail_to_wifi_account.sh
@@ -0,0 +1,6 @@
+#! /usr/bin/bash
+
+# Convert list of mail to the format : NOM;Prenom 
+# for the page https://instella.ens-lyon.fr/stella/intra/compteInvite.html -> Ajouter une liste de comptes
+
+cat *.csv | grep -v "@ens-lyon.fr" | sed -e 's/\(.*\)\.\(.*\)@.*/\2 \1/g' | awk 'BEGIN { OFS="" }{print toupper($1),";",  $2}'
-- 
GitLab