#!/bin/bash for folder in `find . -type d | grep -v 'chat\|trash\|temp\|tmp\|pad\|git\|common\|alpha' | grep 'wombat\|nuage\|partage\|mairie'`; do cd $folder; libre update --batch cd ../..; done