Re: OT: Help with a search and replace script in Perl for a big file with no line breaks
David Christensen wrote:
> Yes -- I'm such an insensitive ass. ;-)
>
nice to meet you :)
>
> I've "cleaned up" more files than I care to remember. Lexing, parsing,
> and EBFN are the standard computer science tools for tasks such as this.
> (Perl s/// is the road to madness for anything but the most trivial
> cases.) I wanted to give the OP an idea of what needs to be done and the
> level of effort involved.
>
>
Selfcontradiction IMO - but you are right - for sure one has to try first,
just to find out that regex is not enough.
Sometimes I am wondering where people get the time to spent on such things.
>> On Jan 24, 2018, at 11:40 PM, deloptes <deloptes@gmail.com> wrote:
>>
>> David Christensen wrote:
>>
>>> 2. Get a tool that understands the dump file (such as the original
>>> database engine), import the dumps, and then generate queries/ reports/
>>> etc. as desired to meet your needs.
>>
>> This is probably the best solution to the problem - import the dump and
>> export in a friendly way
>
> Laziness is the first chief virtue of (Perl) programmers [1]. Hopefully,
> the OP has this option.
>
regards
Reply to: