On Thu, Oct 18, 2012 at 10:14 AM, Fisher Dennis <fis...@plessthan.com> wrote:
> Jason
>
> Are you suggesting grep in R or grep in the system?  If the latter, this 
> won't work because I need to implement this same procedure in Windows (sorry 
> about not mentioning this), in which grep does not exist.  If in R, the 
> syntax is not obvious -- could you provide an example?
>

Windows does have find and findstr which are similar to grep.

   if (.Platform$OS.type == "windows") # use findstr
   else # use grep

>From the Windows console (not from the R console):

  help findstr


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to