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:*$|^ \*|^.*/\*|^/\*|^$"
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
Posta un commento