#!/bin/sh

echo "Processing folders: $FOAM_SRC $FOAM_APP"

find $FOAM_SRC $FOAM_APP -name options -type f | while read item
do
    if [ $(grep -v '^$' $item | wc -l) -ne $(grep -v '^$' $item | sort -u | wc -l) ]
    then
        echo "File with duplicate lines: $item"
    fi
done

echo "Processing complete."
