Metadata-Version: 2.1
Name: lineident
Version: 1.1.0
Summary: Searches files line by line for given words
Home-page: https://github.com/5f0ne/lineident
Author: 5f0
License: MIT
Classifier: Operating System :: OS Independent 
Classifier: Programming Language :: Python :: 3 
Classifier: License :: OSI Approved :: MIT License 
Description-Content-Type: text/markdown
License-File: LICENSE.md

# Description

Searches files line by line for given words

# Installation

`pip install lineident`

# Usage

**From command line:**

`python -m lineident --path PATH --method {and,or} --words WORDS`

| Option | Short | Type | Default | Description |
|---|---|---|---|---|
|--path | -p | String | - | Path to file which shall be searched |
|--method | -m | String | - | or = Check if one of the words is in the line <br> and = Checks if all words are in the line |
|--words | -w | String | - | CSV input e.g.: dog,cat,hello |


# Example

`python -m lineident -p path/to/example_list.txt -w cat,dog,people -m or`

```
################################################################################

lineident by 5f0
Searches files line by line for given words

Current working directory: path/to/lineident

-->    Path: path/to/example_list.txt
-->     MD5: 175e1b9d0e5d980323dcd01e1d4b21e9
-->  SHA256: 3563b6334e666d43365882ba5a218592a9036f2eeb2dbc6ed38a66ff1175b2ac

Datetime: 01/01/1970 11:12:13

################################################################################

Search Options:
---

Method: or
 Words: ["cat", "dog", "people"]


Result:
---
Hits : 2
---

Line Nr: 44
     --> cat
Line Nr: 51
     --> dog
Line Nr: 53
     --> people

################################################################################

Execution Time: 0.0 sec

```


# License

MIT
