Hi
Tested but not enough RAM
anyway, true that I could just drop witout overwrite with spaces

thanks
Paolo

On Fri, Sep 11, 2015 at 4:44 PM, bill lam <bbill....@gmail.com> wrote:

> If you have enough RAM, try
>
> b=. 127 < a. i. data
> data=. b } data,:' '
>
> Пт, 11 сен 2015, Strale написал(а):
> > Hello
> >
> > I have a very big file 3 G Bytes and I need to make some search on it :(
> > data is 8 bit char data
> >
> > J open it without problem
> > but I have some problem to use "rxmatches" due to the not 7 bit ASCII
> chars
> > (I presume)
> >
> > I have used a trik to delete data > of 7 bit  but is very badd and lead
> to
> > out of memory
> >
> > I take the inddexes of ASCII chars > of 127
> > and then I look inside data for those indexes with  command i.
> > once found I change with spaces the indexes found with the comand  ' '
> > (indexes) } data
> >
> >
> > data <-  is loaded with 3 G Bytes
> > remove =.( 128 + i. 128 ) { a. NB.  >7bit ASCII
> >
> > data =. ' ' ((128 > remove i. data) # i. $ data) } data NB. to 7bit ASCII
> >
> > |out of memory
> >
> >
> >
> > Is there a better way to do it  ?
> >
> >
> >
> > Thanks
> >
> > Paolo
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
We are made of star dust
(Carl Sagan)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to