Skip to content

DontPanicO/grepdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3.6|3.9 License: GPL v3 release 1.0 pypi 1.0

grepdl

A simple command line interface to grep live text stream of docker logs

Installation

N.B. Installation cloning the repository should be done for development pourposes only.

Install with dpkg

$ wget http://andreatedeschi.uno/grepdl/grepdl_1.0-1_all.deb
$ sudo dpkg --install grepdl_1.0-1_all.deb

Install with pip

$ sudo python3 -m pip install grepdl

Install with rpm

$ wget http://andreatedeschi.uno/grepdl/grepdl-1.0-1.noarch.rpm
$ sudo rpm --install grepdl-1.0-1.noarch.rpm

Install cloning the repo

$ git clone https://git.metodogroup.it/andrea.tedeschi/grepdl.git
$ cd grepdl
$ python3 -m pip install .

N.B. If you have not python3-pip installed, last command is:

$ python3 setup.py install

Usage

grepdl  [options] <container> <search>
||=============================================||
||Examples:                                    ||
||grepdl container '^thi.+ mine$' --regex      ||
||grepdl container 'hello world' --since 10m   ||
||=============================================||

A tool to scan recursively a directory and grep in the content of its files

positional arguments:
  container             The container id or name
  search                The text or the pattern to look for in files content

optional arguments:
  -h, --help            show this help message and exit
  -r, --regex           Search is regular expression
  -i, --case-insensitive
                        The script will acts case insensitive
  --since <timestamp>   Only logs since timestamps (YYYY-mm-ddThh:mm:ssZ) or relative (42m, 10h, etc)
  --until <timestamp>   Only logs until timestamps (YYYY-mm-ddThh:mm:ssZ) or relative (42m, 10h, etc)

About

A simple command line interface to grep live text stream of docker logs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages