Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2009 23:45:36 -0700
From:      David Allen <the.real.david.allen@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   A general sed question
Message-ID:  <2daa8b4e0910062345r83fa23aj113b062af114887f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I keep bumping up against this, so I thought I'd throw this question out
to those who understand sed better than I do.

What I'm trying to do is to clean up the contents of some files
(/sys/i386/conf/GENERIC would be a good example) to get more readable
diffs.  To that end, I'm trying to use sed to

 - delete commented lines
 - remove inline comments
 - remove trailing spaces and/or tabs
 - delete blank lines, and/or lines containing just spaces and/or tabs
 - expand tabs

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2daa8b4e0910062345r83fa23aj113b062af114887f>