Re: grep'ping lines with patterns
From: Harry (harryooopotter_at_hotmail.co_)
Date: 11/29/05
- Next message: Ed Morton: "Re: print one occurance for duplicate entries"
- Previous message: Harry: "Re: print one occurance for duplicate entries"
- In reply to: Frank Dietrich: "Re: grep'ping lines with patterns"
- Next in thread: James: "Re: grep'ping lines with patterns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ed Morton: "Re: print one occurance for duplicate entries"
- Previous message: Harry: "Re: print one occurance for duplicate entries"
- In reply to: Frank Dietrich: "Re: grep'ping lines with patterns"
- Next in thread: James: "Re: grep'ping lines with patterns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|