Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!ucdavis!caldwr!rfinch From: rfinch@caldwr.water.ca.gov (Ralph Finch) Newsgroups: comp.unix.questions Subject: Fuzzy grep? Keywords: grep Message-ID: <242@locke.water.ca.gov> Date: 2 Nov 90 23:34:34 GMT Organization: Calif. Depart. of Water Resources, Sac. Lines: 13 Is there something like grep, except it will (easlly) search an entire file (not just line-by-line) for regexp's near each other? Ideally it would rank hits by how much or how close they match, e.g. fzgrep 'abc.*123' filename would return hits not by line number but by how close abc & 123 are found together. Also it wouldn't matter what order the regexp's are. -- Ralph Finch 916-445-0088 rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch Any opinions expressed are my own; they do not represent the DWR