Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recherche la liste des properties non utilisées dans le projet
#!/bin/sh
fichierProperties=$1
repertoireBaseProjet=$2
fichierRapport=$3
while read line
do
key=${line%%[ =]*}
if [ -n "$key" ]
then
nb=`find $repertoireBaseProjet -name "*.jsp" -o -name "*.xml" -o -name "*.java" | xargs -l10 grep $key | wc -l`
if [ $nb -eq 0 ]
then
echo $key
fi
fi
done < $fichierProperties | tee -a $fichierRapport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.