in reply to Re^4: Offset Reading - two files
in thread Offset Reading - two files
seek does not take a length ($2 as its third parameter. If you changed that to:
perl -sple"BEGIN{open BIG};($1,$2)=split;seek(BIG,$1,$2);read(BIG,$_,0 +)" -- -BIG=bigfile.dat index.dat >outfile.dat
It might work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Offset Reading - two files
by gio001 (Acolyte) on Dec 14, 2012 at 15:46 UTC | |
by BrowserUk (Patriarch) on Dec 14, 2012 at 16:04 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 16:14 UTC | |
by BrowserUk (Patriarch) on Dec 14, 2012 at 16:47 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 17:32 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 17:22 UTC | |
by johngg (Canon) on Dec 14, 2012 at 16:11 UTC | |
by Anonymous Monk on Dec 14, 2012 at 16:04 UTC |