User Tools

Site Tools


computing:linux:strip_comments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computing:linux:strip_comments [2012/03/29 11:32]
gcooper
computing:linux:strip_comments [2015/10/19 10:00] (current)
gcooper
Line 1: Line 1:
 ====== Strip Comments ====== ====== Strip Comments ======
 +
 +===== With ''grep'' =====
 +
 +<file>
 +grep -v '^$\|^\s*\#' <filemane>
 +</file>
 +
 +===== Small Utility =====
 +
 +FIXME
  
 Create this tiny utility to view configuration files at their smallest and most readable form. Create this tiny utility to view configuration files at their smallest and most readable form.
computing/linux/strip_comments.1333042377.txt.gz · Last modified: 2012/03/29 11:32 by gcooper