This commit is contained in:
elam monnot
2022-03-22 11:36:18 +01:00
parent 1b79c265fe
commit bbb3d15dd0
7 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/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 fichier ${fich}"
exit 2
fi
fich=$1
while read ligne
do
echo "${ligne}"|cut -d: -f1
done < $fich