From 0d9d6039095823841a4203d2d90d5fd4dba9ad52 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 8 Apr 2014 00:17:22 +0200 Subject: [PATCH] =?utf8?q?[populate=5Fforward]=20=C3=80=20lancer=20en=20ro?= =?utf8?q?ot=20pour=20r=C3=A9cup=C3=A9rer=20le=20contenu=20de=20tous=20les?= =?utf8?q?=20.forward?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit c'est mal --- populate_forward.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 populate_forward.sh diff --git a/populate_forward.sh b/populate_forward.sh new file mode 100755 index 0000000..276a5f3 --- /dev/null +++ b/populate_forward.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Remplir le fichier forward + +find /home -mindepth 1 -maxdepth 1 -type d | sort | \ +while read -r dossier; +do + if test -f ${dossier}/.forward; + then + echo -n "${dossier/\/home\//} : "; + cat ${dossier}/.forward + fi +done > forwards + +chown legallic:users forwards +chmod 600 forwards -- 2.39.2