Socket
Book a DemoInstallSign in
Socket

lrgrep

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lrgrep

Helper script for `grep`ing log rotated files

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

lrgrep

Helper script for greping log rotated files. Searches both the current and log rotated files with the same base name.

Installation

npm -g i lrgrep

Usage

$ ls -l
-rw-r--r-- 1 ubuntu ubuntu 493345802 Mar  1 13:52 registry-frontdoor.log
-rw-r--r-- 1 ubuntu ubuntu 161932953 Mar  1 06:25 registry-frontdoor.log.1.gz
-rw-r--r-- 1 ubuntu ubuntu  93318881 Feb 29 06:25 registry-frontdoor.log.2.gz
-rw-r--r-- 1 ubuntu ubuntu  80401821 Feb 28 06:25 registry-frontdoor.log.3.gz
$ lrgrep foobar registry-frontdoor.log
registry-frontdoor.log:foobar
registry-frontdoor.log.2.gz:foobar

Where otherwise you'd have to call grep and zgrep separately like:

$ grep foobar registry-frontdoor.log
foobar
$ zgrep foobar registry-frontdoor.log.*.gz
registry-frontdoor.log.2.gz:foobar

FAQs

Package last updated on 01 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts