【文件属性】:
文件名称:search_in_file:按目录路径搜索短语搜索文件
文件大小:110KB
文件格式:ZIP
更新时间:2021-05-19 15:07:00
Ruby
SearchInFile
按目录路径搜索短语的文件。
安装
将此行添加到您的应用程序的Gemfile中:
gem 'search_in_file'
然后执行:
$ bundle
或将其自己安装为:
$ gem install search_in_file
用法
要在文件系统中搜索带有指定短语的某些文档,只需使用:
SearchInFile.search( directory_or_file_path, search_phrase )
PS:
Windows:gem支持在所有.doc,.docx,.pdf和.txt文件中进行搜索
OS_X或Linux:gem支持在.docx,.pdf和.txt文件中进行搜索
待续...
贡献
分叉( )
创建功能分支( git checkout -b my-new-feature )
提交更改( git commit -am 'Ad
【文件预览】:
search_in_file-master
----search_in_file.gemspec(1KB)
----LICENSE.txt(1KB)
----lib()
--------file_parsers()
--------search_in_file()
--------search_in_file.rb(2KB)
----Gemfile(99B)
----spec()
--------fixtures()
--------specs()
--------spec_helper.rb(25B)
----Rakefile(130B)
----README.md(1KB)
----.gitignore(163B)