Last active
June 28, 2024 16:09
-
-
Save vdm/673530a219fe92536010afd121954f90 to your computer and use it in GitHub Desktop.
Show config across .d directories without comment or blank lines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -n+1 $(find /etc/logrotate* -type f) | grep -vE '^(#|$)' | |
tail -n+1 $(find /etc/rsyslog* -type f) | perl -ne 'print if !/^(\s*#|$)' | |
sudo bash -c 'tail -n+1 $(find /{etc,var/spool}/cron* -type f)' | grep -vE '^(#|$)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment