Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command wanted in Python: mgrep
what mgrep should do is take a grep argument that has line separators, and search the specified file(s) (or stdin if no files specified) for a match of the group of lines as a group. i also want the context output options -A, -B, and -C and the list option -l and the number option -n. suppose i search for foo\nbar. lots of files have lots of lines with foo. but none of those will match unless the line that follows has bar.
You want to compare your requirements with grin3's features. There are also many other results for 'grep' in pypi.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  an error --> a wanted feature Skaperen 9 314 Jan-04-2018, 07:19 PM
Last Post: nilamo
  wanted: python code: sleep to a time period Skaperen 2 290 Nov-06-2017, 03:00 AM
Last Post: Skaperen
  program/scrpt wanted (in python, of course) Skaperen 5 411 Oct-23-2017, 03:25 PM
Last Post: snippsat

Forum Jump:

Users browsing this thread: 1 Guest(s)