Skip to main content

A python CLI tool that allows you to extract certain lines from text files and transfer them to another file

Project description

Line Extractor

Line Extractor is a Python CLI for extracting certain lines from text files given specified rules.

Why you should use this CLI tool

If you're trying to read through thousands of lines of logs or just want to see every time the word "Donkey" shows up in the Shrek movie script this tool can help you do that. Instead of greping with regex you can use a more intutive CLI.

I created this tool because I got tired of reading through EC2 logs finding the lines beginning with certain phrases or ending with other phrases. So if this tool helps you out feel free to let me know!


Use the package manager pip to install Line Extractor.

pip install lineExtractor


General Format

lineExtractor [Options] source_file destination_file

Open the help menu

lineExtractor -h

Get all lines that contain the word "bee" and put them into output.txt

lineExtractor -c bee beeMovie.txt output.txt

Get all lines that start with "Hello" regardless of casing and put them into hello.txt

lineExtractor -b Hello -i speech.txt hello.txt



Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


Kyle Van Landingham



Project details

Download files

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

Files for lineExtractor, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size lineExtractor-0.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page