vscode-remove-comments icon indicating copy to clipboard operation
vscode-remove-comments copied to clipboard

Feature Request: Remove comments from .conf files.

Open intijk opened this issue 6 years ago • 2 comments
trafficstars

configuration file is a very simple type, for example, /etc/debconf.conf

configuration lines are start with #.

Remove empty line also good. Please consider implement it , appreciate :)

intijk avatar Mar 12 '19 04:03 intijk

Hi @intijk,

Seems like an easy addition, I'll implement it ASAP. Thanks for bringing this up :D

Cheers,

Mihir

plibither8 avatar Mar 12 '19 15:03 plibither8

Great, this is a very common need from system admins. Usually I type below command to achieve this, but I am getting more lazy :laughing:

cat /etc/debconf.conf | egrep "^\s*#" -v | awk NF

intijk avatar Mar 12 '19 17:03 intijk