Re-
[tmpfs]$ cat toto
23654
12345
98765
25634
48569
75235
55992
21456
12458
[tmpfs]$ cat tata
23654
12345
25634
48569
55992
21456
[tmpfs]$ cat bar.sh
#! /bin/sh
#set -xv
IFS=$'\n'
tab=( $( cat toto ) )
for i in ${tab[@]}
do
grep "$i" < tata >/dev/null
if [ "$?" = 1 ]
then
echo "Elément "$i" absent."
fi
done
[tmpfs]$ ./bar.sh
Elément 98765 absent.
Elément 75235 absent.
Elément 12458 absent.
[tmpfs]$Mais bon ce n'était pas la peine de générer un tableau pour ça, une simple boucle comme ça suffisait :
while read line
do grep "$line" tata >/dev/null
if [ "$?" = 1 ]
then echo "Elément "$line" absent."
fi
done < toto
;-))
$ man woman
Il n'y a pas de page de manuel pour woman.