Remove comments on linux with Grep

readability on config files:

egrep -v "^$|^#" /etc/ssh/sshd_config_dirty  ← easy

egrep -v "^:space:*$|^#" /etc/ssh/sshd_config

egrep -v "^:space:*$|^#" sshd_config

egrep -v "^:space:*$|^ \*|^.*/\*|^/\*|^$" 



Commenti

Post popolari in questo blog

Teams Incoming Webhook deprecated: Use PowerAutomate - Workflow

Mysql operator S3 innodbcluster backup SECRET CONFIG

Fedora - KVM - qemu - Windows 11 guest. error: swtpm at /usr/bin/swtpm does not support TPM 2