Matt's Tech HOWTO's
Matt Feenstra is an Architect and Developer, living and working in Palm Desert, CA
Friday, April 12, 2019
Ruby: Best way to boolean grep for a string contained in a file
File.readlines('./mystuff.txt').grep(/Word123/).any?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment