in reply to awk/perl?

It looks like you want
/usr/bin/perl -pe 's/lrw......./\n/g;'
it works fine *except* on flat files that have more than 199 records (awk's limit, it turns out).

Somehow I doubt that. If awk only worked on files of less than 200 records, that would severely limit its utility. Perhaps your particular version of awk is crippled?

Replies are listed 'Best First'.
Re: Re: awk/perl?
by Taulmarill (Deacon) on Dec 16, 2003 at 16:27 UTC
    i think awk is limited to the records in one line, but can process as many lines as you whant.
Re: Re: awk/perl?
by Anonymous Monk on Dec 16, 2003 at 20:56 UTC

    For interest sake, from the options section of the gawk manpage:

    -mf NNN -mr NNN Set various memory limits to the value NNN. The f flag sets the maximum number of fields, and the r flag sets the maximum record size. These two flags and the -m option are from the Bell Labs research version of UNIX awk. They are ignored by gawk, since gawk has no pre-defined limits.