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> | ||
=== Report on config overrides === | |||
Alphabetical list of variables per file in your "config" directories. | |||
<source lang="bash"> | <source lang="bash"> | ||
find | 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> | ||