Supprimer 'Sio1/SISR1/40-ShellEtBash/crsamba5'
This commit is contained in:
parent
66ba6ac484
commit
59057cbb21
@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#set -e
|
||||
#set -u
|
||||
|
||||
if [[ $# -ne 1 ]] ; then
|
||||
echo "usage : $0 <fichier>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -r "$1" ]] ; then
|
||||
echo "$0 : erreur ouverture ${fich}"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
||||
|
||||
fich=$1
|
||||
while read ligne
|
||||
do
|
||||
login=$(echo "${ligne}"|cut -d: -f1)
|
||||
nom=$(echo "${ligne}"|cut -d: -f2)
|
||||
echo "${login} ${nom}"
|
||||
done < $fich
|
Loading…
x
Reference in New Issue
Block a user