Python Forum
Command wanted in Python: mgrep
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command wanted in Python: mgrep
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
You want to compare your requirements with grin3's features. There are also many other results for 'grep' in pypi.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Python Developer Wanted] ‘Women in Tech’ Worldwide Training Initiative from Oxford vanicci 2 2,844 Jun-27-2018, 04:25 PM
Last Post: vanicci
  wanted: python code: sleep to a time period Skaperen 2 6,579 Nov-06-2017, 03:00 AM
Last Post: Skaperen
  program/scrpt wanted (in python, of course) Skaperen 5 4,421 Oct-23-2017, 03:25 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020