Solution exercice 3

#!/bin/bash

echo "Entrez l'arborescence à traiter :"

read chemin

echo "Début des statistiques sur l'arborescence $chemin"
echo "Il y a 'find $chemin -type d | wc -l 'répertoires"
echo "Il y a 'find $chemin -type f | wc -l 'fichiers"


Copyright Richard Buchmann & Emmanuel Viaud, université P.M. Curie 2005, MAJ 25 février, 2007