snipt

Ctrl+h for KB shortcuts

PHP

grep a file removing comments and while lines

grep '^[^ ;]' php.ini
https://snipt.net/embed/fd9f7a644d23616f71a2878991f2548e/
/raw/fd9f7a644d23616f71a2878991f2548e/
fd9f7a644d23616f71a2878991f2548e
php
PHP
1
2019-05-25T06:56:47
True
False
False
/api/public/snipt/23217/
how-to-grep-a-file-removing-comments-and-while-lines
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">grep &#39;^[^ ;]&#39; php.ini</span> </span></pre></div> </td></tr></table>
apache, php, server