#!/bin/bash for folder in `find . -type d | grep -v 'chat\|trash\|temp\|tmp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`; do cd $folder; libre update export NS=`pwd | rev | cut -d'/' -f 2 | rev` kubectl -n $NS delete job update-nc-11-06 libre apply ../../common/migrations/12-06-2021-harmonize-nc.yml; cd ../..; done