[R] Scanning grep through huge files

2009-11-03 Thread Johannes Graumann
Hi, I'm dealing which huge files I would like to index. On a linux system grep -buo PATTERN FILENAME hands me the byte offsets for PATTERN very quickly and I am looking to emulate that speed and ease with native R tools - for portability and elegance. gregexpr should be able to do that but I

Re: [R] Scanning grep through huge files

2009-11-03 Thread Duncan Murdoch
On 11/3/2009 9:29 AM, Johannes Graumann wrote: Hi, I'm dealing which huge files I would like to index. On a linux system grep -buo PATTERN FILENAME hands me the byte offsets for PATTERN very quickly and I am looking to emulate that speed and ease with native R tools - for portability and