This commit is contained in:
2022-03-22 11:36:11 +01:00
parent c11548b778
commit 66ba6ac484
5 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/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
echo "${ligne}"|cut -d: -f1
done < $fich