Skip to content

Instantly share code, notes, and snippets.

@kjgarza
Created November 12, 2013 21:00
Show Gist options
  • Save kjgarza/7438607 to your computer and use it in GitHub Desktop.
Save kjgarza/7438607 to your computer and use it in GitHub Desktop.
wordSearch<- "problem"
i<-1
files<-RQDAQuery("select file from source where status=1")
file<-files$file[i][1]
lines<- unlist(strsplit(file, "\n[ \t\n]*\n*"))
r<-grep(wordSearch, lines)
lines[r]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment