scripts tp crsamba

This commit is contained in:
KONE
2023-03-27 16:47:20 +02:00
parent d506a19c31
commit 3300602f9c
9 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
usage() {
echo "usage : $0 <users.txt>"
exit 1
}
if [[ $# != 1 ]] ; then
usage
fi
fich=$1
if [[ ! -r $fich ]] ; then
echo "i$0: erreur ouverture fichier $fich"
exit 2
fi
while read ligne
do
echo $ligne
done < $fich