Carl Lowenstein wrote:
On Mon, Feb 25, 2008 at 12:57 PM, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
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?

If I gave you the clue that the program "grep" was named for the ed
command "g/re/p" would that help?

Where "re" stands for "regular expression".

    carl

Actually, it would. It would "help", that is. I still would not have gotten the /d angle, or the g/ angle for that matter. I saw the similarity to "grep", but the slashes and the "d" at the end threw me.

Unfortunately, I have nearly 0 exposure to ed.



--
Ralph

--------------------
If you want to bake an apple pie from scratch, you must first create the universe.
--Carl Sagan

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to