Strip Comments
31 Dec 2004This is perl one-liner to strip comments from a text file (found in the documentation for mod_auth_tkt). I'm posting it here so I can google for "strip comments" when I need it.
perl -ne 'print if /^\s*[^#\s]/'
This is perl one-liner to strip comments from a text file (found in the documentation for mod_auth_tkt). I'm posting it here so I can google for "strip comments" when I need it.
perl -ne 'print if /^\s*[^#\s]/'