Searching for duplicate lines in PHP-FPM pool configuration

This morning I was reviewing a server which was performing oddly and discovered that there were two different values declared within the PHP-FPM pool configuration file.  Once I noticed the first, I wanted a way to quickly search all of them without manually reviewing.  So here’s what I came up with:

grep -v '^$\|^;\|^[[:space:]]' /etc/php-fpm.d/PHP-FPM-POOL-FILE.conf | sort

This will inverse grep the PHP-FPM-POOL-FILE.conf and trim empty lines, lines with just a space, and all commented out lines using a semi-colon.  I then pipe to sort to list the entries alphabetically.  This makes it easy to spot duplication.

Hope this helps someone in the future.