Skip to content
Prev 10897 / 398502 Next

list.files wildcard

On Thu, 26 Apr 2001, David White wrote:

            
No, that's not the problem. If you do
  a<-c("n031ku09.10msmeanc", "n031ku10.10msmeanc", "n031ku11.10msmeanc")
  grep("*ku[01-30].meanc",a)
you still get no files, so the problem is with the regular expression.

[01-30] doesn't mean numbers between 01 and 30. It means a single
character that is 0, between 1 and 3, or zero

You can get nearly the right thing with
   "*ku[0-3][0-9].10msmeanc"
which matches numbers from 01 to 39


	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._