PapaScott I like big blogs and I cannot lie! 🐘

Strip Comments

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]/'

comments powered by Disqus