Giter VIP home page Giter VIP logo

grepdl's Introduction

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)

grepdl's People

Contributors

dontpanico avatar

Stargazers

al-fariqy raihan ( qywok ) avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.