{"id":177,"date":"2015-02-11T15:51:39","date_gmt":"2015-02-11T15:51:39","guid":{"rendered":"https:\/\/edulab.unitn.it\/tecnici\/?p=177"},"modified":"2015-02-11T15:51:39","modified_gmt":"2015-02-11T15:51:39","slug":"grep-elimina-righe-vuote","status":"publish","type":"post","link":"https:\/\/edulab.unitn.it\/tecnici\/grep-elimina-righe-vuote\/","title":{"rendered":"grep elimina righe vuote"},"content":{"rendered":"<div class=\"page\">\n<div class=\"level1\">\n<p>Se volete vedere le effettive linee attive di un file di configurazione in Linux escludendo eventuali righe con commenti \u00e8 sufficente eseguire ad esempio:<\/p>\n<pre class=\"code\">cat nomefile | grep -v \"^#\"<\/pre>\n<p>Se si vuole anche (negli script \u00e8 molto utile!!!) escludere le linee lasciate in bianco nel file:<\/p>\n<pre class=\"code\">cat nomefile | grep -v \"^#\" | grep -v \"^$\"<\/pre>\n<\/div>\n<\/div>\n<div class=\"clearer\"><\/div>\n<div class=\"stylefoot\">\n<div class=\"meta\">\n<div class=\"user\"><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Se volete vedere le effettive linee attive di un file di configurazione in Linux escludendo eventuali righe con commenti \u00e8 sufficente eseguire ad esempio: cat nomefile | grep -v &#8220;^#&#8221; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-how-to","category-linux"],"_links":{"self":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":1,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/177\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}