in reply to Number Line while reading by chunks
Update: Oops, missed something when doing the test. Code above corrected. This was formerlyperl -ne 'BEGIN {our $n=1; $/="";}; print "=Line:$n, Record:$.==\n$_"; + $n += y/\n/\n/;'< textfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Number Line while reading by chunks
by ambs (Pilgrim) on Aug 22, 2008 at 18:22 UTC |