Linux - display only uncommented lines
Hello, I would like to know if it is possible on Linux to somehow achieve that, for example, in the configuration file use cat /etc/iscsi/iscsid.conf to display only those lines that are not a comment = ie. I don't want to show lines starting with #. Would it work somehow? Thanks
Hi,
uncommented lines can be filtered out with the -v parameter for grep as follows:
REPLY
Hi,
uncommented lines can be filtered out with the -v parameter for grep as follows:
sudo cat /etc/iscsi/iscsid.conf | grep -v '#'