Re: grep'ping lines with patterns

From: Harry (harryooopotter_at_hotmail.co_)
Date: 11/29/05


Date: Tue, 29 Nov 2005 05:39:34 GMT

Frank Dietrich wrote...
>
>> 8 ./1/w0000001/view2072.dcm
>> 9 ./1/w0000001/view2073.dcm
>> 10 ./1/w0000001/view2074.dcm
>> 11 000005B2: (0020,0037) [DS/76]
>> "0.065227936\0.99787039\-4.860907e-010\-
>> 0.016773475\0.0010964336\-0.99985871 " ; Image Orientation (Patient)
>> [snip]
>
>If [DS/76] may be used as match for line 11 then this should work
>
>grep -B1 "\[DS/76\]" log.txt

[DS/76] has no direct relationship with the 6 values inside the quotes.

I used the following to filter log.txt (17 MB) down to a 4MB text output.

  grep "0\.[987654321]" log.txt > log1.txt



Relevant Pages

  • Re: how can i filter my database?
    ... the user would NOT type the quotes, only the text to filter on ... ... Warm Regards, ... user types in 'villa' with quotes, I'd like the combo box to only display those records with 'villa' in the address line. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Using OR in a search form
    ... I would like to filter where it looks for a only or a,b or b,c ... case, you have to wrap the value from the combo box in quotes, something ... If IsNull(WrapWith) Then WrapWith = Chr$ ... Give me all values where State is CO and where Communication is Yes. ...
    (microsoft.public.access.forms)
  • Re: how can i filter my database?
    ... the user would NOT type the quotes, only the text to filter on ... ... Access Basics ... Dave wrote: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Custom interference filter
    ... On Sep 28, 11:35 am, Phil Hobbs ... Something like a Schott DAD-8 interference filter looks like it might ... Dr Philip C D Hobbs ... Anyway I've got a few companies working on quotes. ...
    (sci.optics)
  • Re: Multiselect Listbox as qualifier for query
    ... Use a multi-select list box to filter a report ... > abbreviation exactly and never omit a comma. ... > You could then use INSTRto search the string. ... >>The parameter box displays but no matter how I enter the data (quotes; ...
    (microsoft.public.access.queries)