One-liners: Difference between revisions

mNo edit summary
add title for report
Line 63: Line 63:
<ref>https://stackoverflow.com/questions/5119946/find-exec-with-multiple-commands</ref>
<ref>https://stackoverflow.com/questions/5119946/find-exec-with-multiple-commands</ref>


And this one in your /opt/conf-meza/public "config" directory
=== Report on config overrides ===
Alphabetical list of variables per file in your "config" directories.
<source lang="bash">
<source lang="bash">
find . -name '*yml' -o -name '*php' -exec bash -c 'echo -e "\n$0\n"; grep --perl-regexp --only-matching "^\s*(\\\$[^\[ ]+)" '{}' | sed -e "s/^[[:space:]]*//" | sort -u ' '{}' \;
find /opt/conf-meza/public -name '*yml' -o -name '*php' -exec bash -c 'echo -e "\n$0\n"; grep --perl-regexp --only-matching "^\s*(\\\$[^\[ ]+)" '{}' | sed -e "s/^[[:space:]]*//" | sort -u ' '{}' \;
</source>
</source>