[linux] bashvraagje

Hans Paijmans j.j.paijmans op uvt.nl
Wo Nov 2 11:41:52 CET 2005


ik heb twee lijstjes met woorden. ik wil elk woord van de eerste
lijst een keer met alle woorden van de tweede lijst combineren.

Ik dacht dat dit zou werken:

exec 6<$1
exec 7<$2

while read -u 6 x ; do
   while read -u 7 y; do
      echo $x"   "$y;
   done
done

maar hij leest alleen de eerste file van de eerste lus (maar wel alle
files van de tweede).


-- 
Dr. J.J. Paijmans
thuis: Elzenstraat 1, Waalre, 040-2230680    http://paijmans.net
Tilburg University, Faculty of Arts,        Dept. of Linguistics & AI
Tilburg, Netherlands (+31) (0)13-4662693    http://pi0959.kub.nl
+31 621 961 083




More information about the Linux mailing list