Thanks to visit codestin.com
Credit goes to github.com

Skip to content

astorre88/log_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogParser

Build Status Coverage Status

The library for grep large files using CPU cores simultaneously.

Usage

# Grep the file and get list of matches:
LogParser.grep_file("/source/path", "search_word") # => {:ok, ["1st string with search_word\n", "2nd string with search_word\n", "3d string with search_word\n"]}

# Grep whole folder and get list of matches:
LogParser.grep_whole_folder("/source/path", "search_word") # => {:ok, ["1st string with search_word\n", "2nd string with search_word\n", "3d string with search_word\n"]}

# Grep to file:
LogParser.grep_file_to_file("/source/path", "search_word", "/destination/path") # => {:ok, ["1st string with search_word\n", "2nd string with search_word\n", "3d string with search_word\n"]}

About

The library for grep large files using CPU cores simultaneously.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages