Project

dxdir_grep

0.0
No commit activity in last 3 years
No release in over 3 years
Grep a file directory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.8.1, ~> 0.8
 Project Readme

Introducing the dxdir_grep gem

require 'dxdir_grep'

ddg = DxDirGrep.new()
dx = ddg.grep 'rexle-xpath'
dx.all.each do |x|
  puts "%s %s" % [x.name, x.preview[20..-30].inspect]
end

Output (extract):

notes310716.txt "i = s =~ /rexle-xpath/\n  puts 'r: ' + r.inspect\n  i"
notes180716.txt "---------\nrexle-xpath. Do all the tests pass? Why n"
notes110716.txt ".require 'rexle-xpath-parser'}\n\nrxp = RexleXPathPar"
notes100716.txt ".require 'rexle-xpath-parser'}\n\nrxp = RexleXPathPar"
...

Notes:

  • Initialize can accept the named keywords path and ext
  • The dir.xml file is saved in the current file directory
  • A Dynarex object is returned from the call to DxDirGrep#grep.

Resources

dxdir_grep dir_to_xml dir search grep