Skip to content

A simple tool for finding two things of interest in a stream

License

Notifications You must be signed in to change notification settings

jceaser/find2things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

find2things

Find two things

Overview

A quick hack to find two lines of interest in a stream but only if the first is followed by the second.

Usage

>cat src/find2things.py | python src/find2things.py '^def.*' '.*main.*'
def main(argv):
if __name__ == "__main__":

The command takes two parameters and an input stream on standard in

  • Regular expresion for the first matching line
  • Regular expression for the second matching line

Result will be output to standard output

About

A simple tool for finding two things of interest in a stream

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages