[clug] Circumflex

Scott Ferguson scott.ferguson.clug at gmail.com
Sun Aug 20 16:35:34 UTC 2017

On 21/08/17 02:15, Bryan Kilgallin (iiNet) via linux wrote:
> Thanks, Kim:
>> Regular expressions are confusing.
> I have been "tearing my hair out", trying to match the end of a line in
> a file. Say I want to select from a file, the line whose final character
> is `E'.
> But the following returns nil!
>     grep 'E$' Sample.txt
less Sample.txt

grep [E]$ Sample.txt

(you didn't specify a capture group)

grep [d]$ Sample.txt

grep [deE]$ Sample.txt

This is why I suggested learning in a text editor to begin with - so you
can see what works and why.

Kind regards

    A: Because we read from top to bottom, left to right.
    Q: Why should I start my reply below the quoted text?

    A: Because it messes up the order in which people normally read text.
    Q: Why is top-posting such a bad thing?

    A: The lost context.
    Q: What makes top-posted replies harder to read than bottom-posted?

    A: Yes.
    Q: Should I trim down the quoted part of an email to which I'm reply


More information about the linux mailing list