Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
/ start-from Public archive

Command-line tool to ignore lines of a stream until a line matches a given pattern, typically to resume an operation from the point where it stopped

Notifications You must be signed in to change notification settings

maxlath/start-from

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

start-from

Command-line tool to ignore lines of a stream until a line matches a given pattern, typically to resume an operation from the point where it stopped.

Install

npm install -g start-from

Use

cat ./some_file | start-from "some pattern"

Alternative

The case can be done with grep, by abusing the --after-context option:

# Set 'infinity' to more than the number of lines in your file
infinity=1000000000000
cat ./some_file | grep "some pattern" --after-context $infinity

About

Command-line tool to ignore lines of a stream until a line matches a given pattern, typically to resume an operation from the point where it stopped

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published