

{"id":476,"date":"2016-11-21T08:50:32","date_gmt":"2016-11-20T22:50:32","guid":{"rendered":"https:\/\/kng.tech\/blog\/?p=476"},"modified":"2016-11-21T10:01:53","modified_gmt":"2016-11-21T00:01:53","slug":"removing-comment-lines-from-conf-file","status":"publish","type":"post","link":"https:\/\/kng.tech\/blog\/removing-comment-lines-from-conf-file\/","title":{"rendered":"Removing #comment lines from Conf file"},"content":{"rendered":"<p>Everyone knows that squid.conf have millions of #comment lines.<br \/>\nhere is a one liner to remove it:<\/p>\n<pre><code>grep -v '^#' squid.conf | uniq | sort &gt;squid.nocomment<\/code><\/pre>\n<p>this could apply to any files in Linux which has the # at the front.<br \/>\nReference <a href=\"http:\/\/www.pkill-9.com\/easily-remove-comments-file-or-squid-conf-war-peace\/\" target=\"_blank\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone knows that squid.conf have millions of #comment lines. here is a one liner to remove it: grep -v '^#' squid.conf | uniq | sort &gt;squid.nocomment this could apply to any files in Linux which has the # at the front. Reference here<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[65,67,32],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-squid","tag-terminal"],"_links":{"self":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":3,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/476\/revisions\/479"}],"wp:attachment":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}