[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [HS] - Script



#!/bin/bash
for FILESRESULT in /app/crunch/temp/*
do
if [ -s $FILESRESULT ];
then
echo "Au moins un fichier a une taille null"

fi
MYFILES=$MYFILES" "$FILESRESULT
done

echo "on peut copier les fichiers"

Je n'ai plus d'erreur, par contre aucuns test n'est fait j'ai l'impression.

J'ai ça en retour à l'éxécution

Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
Au moins un fichier a une taille null
on peut copier les fichiers


Il affiche une ligne "Au moins un fichier a une taille null" par fichier rencontré
qui ne sont pas vide.
et il affiche le dernier echo du script.

J'ai fait un fichier vide pour tester en reel, et il affiche une ligne de plus "Au moins un fichier a une taille null"

;-(


-- 
Nahliel


Reply to: