in reply to (tye)Re: get the line of ith occurrence of '>' without OPENING THE FILE
in thread get the line of ith occurrence of '>' without OPENING THE FILE
dd's useful in Unix for skipping around in large files at the shell level where seek(2) might be a bit more complicated.open(THIRDMB, "dd if=$filename bs=1024 skip=2048 count=1024|") or die; while(<>) { ... } # Reads third MB of file only. close(THIRDMB);
|
|---|