Aide script perl/shell
Résolu
Amel
-
Amel -
Amel -
A voir également:
- Aide script perl/shell
- Classic shell - Télécharger - Personnalisation
- Script vidéo youtube - Guide
- Mas script - Accueil - Windows
- Ghost script - Télécharger - Polices de caractères
- Script cmd - Guide
2 réponses
Salut,
Un truc du genre devrait faire l'affaire :
Un truc du genre devrait faire l'affaire :
for fich in opt/local/sympa/expl/*/config do liste=$(echo "$(dirname $fich)" | sed 's#.*/##') owner=$(grep "owner" -A 4 $fich | grep email) moderator=$(grep "editor" -A 4 $fich | grep email) last_update=$(grep "update" -A 2 $fich | grep date) descriptif=$(grep "subject" $fich) echo "liste : ${liste};owner : ${owner};moderator : ${moderator};dernière update : ${last_update};description : ${descriptif}" >> fichier_sortie.csv done;-))