[removed non-existent group 'comp.lang.perl']
Vronans wrote:
> Paul Lalli wrote:
> > wrote:
> >> Is it possible to search for strings in a file over multiple lines
> >> using a one-liner from the shell?
> >
> > Yes, it is.
> >
> >> What I want to do is find all the text between
> >> a line beginning with "--" or "-- " and
> >> ending with ")$" where '$' is, of course, the EOL char.
> >>
> >> I also would like to know how to find the exclusion
> >> so that the output produces everything but the enclosed string above.
> >> Is this possible with perl?
> >
> > Yes, it is.
> >
> > If you would like assistance with the demonstration of such abilities,
> > please read and follow the Posting Guidelines for the group. Most
> > specifically, please post your best attempt to solve the problem
> > you're having, along with a description of how your attempt is not
> > working sufficiently. Be sure to include example input, desired
> > output, and actual output.
>
> While it's always good for one to attempt to solve their own problem, I
> don't see why the assumption is often made that they did not do so.
Because absolutely no indication of any kind was given that the OP made
any attempt.
> Further more, why are some people so concerned with that in the first
> place?
Because this newsgroup is not a free tech-support system. Everyone who
answers a post here is a volunteer. There are only so many posts that
any one person can volunteer to answer in a given day. Most people
here, myself included, are for more inclined to offer assistance to
people who've demonstrated an attempt to solve the problem first.
Therefore, someone who makes no such demonstration is far less likely
to have their problem answered.
My comments were intended to help the OP help himself. By making an
attempt and following the Guidelines of the group, the OP has the best
chance to actually get his problem solved.
If you want to go ahead and solve people's problems regardless of the
content of their questions, by all means, please continue to do so. No
one will stop you, and I for one will applaud you. ... Right up to the
moment where you say "enough is enough" and decide you can't devote any
more time to doing so.
> Do not get me wrong, your guidelines are good for
> general purposes, but by themselves do not really offer anything to the
> topic it self.
Nor are they supposed to. I am of the "Teach a Man to Fish"
philosophy. Your response helps the OP with this one particular post.
Will you necessarily be here to also answer his next one? And the one
after that? My response teaches him how to ask a better question so
that next time, far more people will be likely to respond to him, in
case you're not around.
Paul Lalli