LogParser v0.0.1 LogParser View Source

LogParser is the main module of multithreading grep lib.

Link to this section Summary

Functions

Grep file and returns list of matches

Grep file and writes list of matches to another file

Grep every file in folder and returns list of matches

Link to this section Functions

Link to this function grep_file(path, finded_str) View Source
grep_file(path :: String.t(), finded_str :: String.t()) ::
  {{:ok, List} | {:error, String.t()}}

Grep file and returns list of matches.

Link to this function grep_file_to_file(source_path, finded_str, destination_path) View Source
grep_file_to_file(
  source_path :: String.t(),
  finded_str :: String.t(),
  destination_path :: String.t()
) :: {{:ok, String.t()} | {:error, String.t()}}

Grep file and writes list of matches to another file.

Link to this function grep_whole_folder(path, finded_str) View Source
grep_whole_folder(path :: String.t(), finded_str :: String.t()) ::
  {{:ok, List} | {:error, String.t()}}

Grep every file in folder and returns list of matches.