samedi 27 décembre 2014

Pipe files downloaded with wget into a function


I'm downloading a bunch of images with wget and I want to rm the files if they are empty with a function to which I can pass the file. My question is how do I pipe the images to a function like this:



rmEmpty ()
{
if ![ -s $file ]
then
rm $file;
fi
}


Aucun commentaire:

Enregistrer un commentaire