How to open a file and search for a word?

后端 未结 4 1301
温柔的废话
温柔的废话 2021-02-02 00:28

How can I open a file and search for a word inside it using Ruby?

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 01:14

    Try gem 'search_in_file', it helps you to search word of phrase in specified file or in many files by path

提交回复
热议问题