Skip to main content

Searches files line by line for given words

Project description

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
and = Checks if all words are in the line
--words -w String - CSV input e.g.: dog,cat,hello
--format -f String std std = Displayed like the example below
ol = One Line Result

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lineident-1.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lineident-1.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file lineident-1.2.0.tar.gz.

File metadata

  • Download URL: lineident-1.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lineident-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8fa75a98c61944077986da986ca34376e443c9eb82fb823e0cbf69f9d7eb282c
MD5 078a98c177675e25664f369655f75c42
BLAKE2b-256 4a5caf17d517863a644a36e49a3cd7f13572e6fe858e4c1ef06854bac46bd479

See more details on using hashes here.

File details

Details for the file lineident-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: lineident-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lineident-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9221dd111929ea63ba322a3f4ae520ad3f365f1c2b8e7a66f4650fe2d4acfafe
MD5 8ce7aab0610d1fee4737821697b21465
BLAKE2b-256 0f766d7a9d3ebab1ac568729c7b6c4d2a75a219d21c6ea0ae205672bf15f1720

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page