Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Administrivia] TOP-POSTING (was: Re: [tlug] pattern matching)



When replying to a post, your text does *not* go here!

Quoth roy lo
>
> for awk
>     Pattern="$1"; shift
>     awk '{
>      if ( match ($0, /'"$Pattern"'/) ) {
>   print substr ($0, RSTART, RLENGTH)
>      }
>  }
>     ' "$@"
>
> isn't google great :P
>  "Stephen J. Turnbull" wrote:>>>>> "Brett" == Brett Robson writes:
>
> Brett> I want to grep for a pattern but I don't want to see the
> Brett> whole line, just the bit that matches. Sometimes I pipe to
> Brett> cut but in this case I don't know where the pattern will
> Brett> be. Surely this is straight forward?
>
> grep -e 'PATTERN' | sed -e 's/.*\(PATTERN\).*/\1/'
> perl -ane 'print "$&\n" if /PATTERN/'
>
> There must be a way of doing this using awk, but I can't remember it.

It goes here. Note how Stephen replied to Brett. Note how easy it is to read
since, like a book or newspaper, it can be read top-to-bottom, with the newest
bits at the end.

I refer you to Charles's words:

Explanation: This means that you have hit your reply button and simply
written a response at the top of the message, leaving whatever remains
at the bottom. When this happens in a series, messages end up
with confusing and unnecessary accretions in their latter
portions, which corrupt the archiving process due to redundancies. The
list editors *could* clean up each one of these, but we feel that this
should be your responsibility and not ours.

Therefore: Please rewrite your post so that there is no additional text
after your own signature and then resend. You can either delete the old
portions of the original post/prior discussion, or skillfully
incorporate them into your own response.

The only exception to this case is when the remainder of the message is
specifically referenced data, or a forwarded message.

If you do a Google search for the keywords "top posting," you will find
ample explanation of this matter.


-- 
Josh Glover

GPG keyID 0xDE8A3103 (C3E4 FA9E 1E07 BBDB 6D8B  07AB 2BF1 67A1 DE8A 3103)
gpg --keyserver pgp.mit.edu --recv-keys DE8A3103


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links