SJS wrote:
begin quoting Ralph Shumaker as of Mon, Feb 25, 2008 at 12:57:34PM -0800:
SJS wrote:
begin quoting Brad Beyenhof as of Sat, Feb 23, 2008 at 07:07:44AM -0800:
I prefer to do such a
step with "grep ." to return all lines that contain non-whitespace
characters.
Well, . matches spaces and tabs, so to be pedantic, that's not entirely
true. :)
But there's nothing between ^ and $ to catch the . so it works just
fine. Better would be to use a g/re/d with an re of "^$". . .
I totally followed all of that *until* "g/re/d". What is that?
Remember where "grep" comes from?
"g/re/p" -> _g_lobally search for _r_egular _e_xpression and _p_rint
Well, "d" instead of "p" means "delete"; thus, g/re/d
I think I understand, kinda like saying:
grep -v ^$
Right?
(Sorry, sometimes I need it to be perfectly obtuse to be certain I have it.)
--
Ralph
--------------------
When we remember we are all mad, the mysteries disappear and life stands
explained.
--Mark Twain
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg