for i in `where is apache`

Top Page

Reply to this message
Author: Ismael Touama
Date:  
To: debutant
CC: guilde
Subject: for i in `where is apache`
Oï,

Voici ma commande shell:
#for i in `whereis apache`
do
    echo "********$i*********";
    ls -l $i;
done


Il y a un point qui m'échappe car la 1ere ligne
est :

********apache:***********
ls: apache:: Aucun fichier ou répertoire de ce type
********apache:***********

$i représente l'entrée et la sortie ?
Pourquoi n'est-ce pas tout simplement la sortie standard
de ma cmd whereis apache ?

Merci,
bbsc
ism