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

Restic backup script simple (fresco fresco callo callo)