On 12/17/2007 3:13 PM, Riki**** 42 wrote:
> On 2007-12-17, Ed Morton <morton@[EMAIL PROTECTED]
> wrote:
>
>>...and now you know why it's a bad idea to post OT solutions rather than
refer
>>people to the appropriate NG - you posted something that may or may not
be a
>>good solution, and got a response that may or may not be accurate but
since all
>>of this has nothing to do with this _AWK_ NG you and the OP are now left
>>scratching your heads.
>
> I beg to differ. I see a problem, I (think) I know a solution. I share
it.
> True, it was not an awk solution. But if the OP discovers that a
ready-made
> solution exists, why not? If he absolutely needs to solve it from within
> awk, I'm sure he'll mension it and he'll put dos2unix asside.
>
>
>>If "dos2unix" is a UNIX tool, and you think think it's a good solution
and you
>>think the OP may have access to UNIX,
>
> I've seen dos2unix on many UNIX systems, so I assumed. Sorry if I'm
wrong.
> The OP is trying to remove ^M chars. I thought it most probable that
he's
> allready in UNIX.
>
>
>>you should refer the OP to a UNIX NG where
>>the solution can be proposed and, if appropriate, debated by experts in
the
>>right domain.
>
> I should have asked the OP to follow me into another NG, hope he'll do
that,
> then post a 'just thought I'd mension this' possibility of a solution
there?
Not exactly. You should've said something like "OT: if you're on a UNIX
system,
the dos2unix command might do what you want - if you're interested in
learning
about that or other UNIX solutions, post your question to comp.unix.shell
or
other UNIX NG".
> What are the chances my 'solution' makes it to the OP?
Excellent.
>
> To the OP: if you required a solution to be in awk *only*, I'm sorry to
have
> wasted your time and bandwidth. I'm sure the other solutions posted here
> will be of help.
I don't think you wasted his time, but you suggested a solution which may
or may
not work as you think and there may or may not be a better UNIX
alternative so
you've thrown the OP into a space where they think they've been given a
good
solution, but maybe it isn't and no-one here (except Kenny!) is going to
argue
because it's OT for this group. I just finished what you started by
pointing you
and the OP to where to get some informed discussion on the topic if
interested.
Ed.


|