#!/bin/bash #opposite filter: #find . -maxdepth 2 -mindepth 2 -type d | grep -v 'trash\|temp\|tmp\|git\|common' | grep -v 'wombat\|nuage\|partage\|mairie' | grep -v chat for folder in `find . -maxdepth 2 -mindepth 2 -type d | grep -v 'chat\|trash\|temp\|tmp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`; do cd $folder; echo $folder cat .env if ! grep APP .env ; then echo "Adding APP env" echo export APP=nextcloud >> .env else echo "Skipping..." fi cd ../..; done