gio001 has asked for the wisdom of the Perl Monks concerning the following question:
I have a question on a change I need to apply to the following code:
As you can see I have 2 files one is data the other is an index file with offset and length for each of the record in the data file. I would like to modify this command in such a way that I can also pass let's say three string vars (could they also be regexp's?), and at the completion of the modified command it will return 3 counts (one per passed var) each count will tell me how many of the records contained var1 or var2 or var3.perl -sple"BEGIN{open BIG};($undef,$l)=split;read(BIG,$_,$l)" -- -BIG= +bigfile.dat index.dat >outfile.dat
I hope one of you wise perl monks can help me out.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Load file from offset file
by NetWallah (Canon) on Mar 29, 2011 at 06:38 UTC | |
by gio001 (Acolyte) on Mar 29, 2011 at 12:46 UTC | |
|
Re: Load file from offset file (move along, nothing to see here)
by Anonymous Monk on Mar 29, 2011 at 06:52 UTC | |
| |
|
Re: Load file from offset file
by Anonymous Monk on Mar 29, 2011 at 06:42 UTC |