1,568 reputation
22040
bio website mikeberggren.com
location California
age 30
visits member for 4 years, 6 months
seen 3 hours ago

Technology Enthusiast, Gamer, Sci-Fi Addict, and DIY-er in training. =)


22h
comment How can I extract the text between two strings in a log file?
@Costas Aborted (core dumped).
22h
comment How can I extract the text between two strings in a log file?
If I may be so bold, could you consider explaining the logic of the command (or pointing me to a reference for sed expression scripts)? I want to understand what this is doing so I can avoid asking similar questions in the future.
22h
comment How can I extract the text between two strings in a log file?
@Costas Immediately went to error for that one.
22h
comment How can I extract the text between two strings in a log file?
I'm marking @Costas's answer as the "accepted solution" but want to thank you again for your time, efforts, and especially patience. It was greatly appreciated.
22h
accepted How can I extract the text between two strings in a log file?
22h
comment How can I extract the text between two strings in a log file?
Bingo. That works.
23h
comment How can I extract the text between two strings in a log file?
Hmm... I suspect that will work. sed is now churning away at 25% cpu (and has been for the past 10 minutes). I'll let it do it's thing and report back when it finishes.
23h
comment How can I extract the text between two strings in a log file?
I'm getting an error: sed: -e expression #1, char 34: Unmatched \{
23h
revised How can I extract the text between two strings in a log file?
Changed name of marker to make example more clear.
23h
comment How can I extract the text between two strings in a log file?
Same error unfortunately.
23h
comment How can I extract the text between two strings in a log file?
That looks promising but the names of the string markers are quite different from one another so I don't think the [34] would work. I'll revise my example above to make that more clear.
23h
revised How can I extract the text between two strings in a log file?
typos.
23h
comment How can I extract the text between two strings in a log file?
That captures the type of text (as well as leaving out the marker names - which is great) but still eventually results in Aborted (core dumped). Thanks anyway though.
1d
revised How can I extract the text between two strings in a log file?
typos.
1d
asked How can I extract the text between two strings in a log file?
Mar
25
accepted How can I search in vim for a pattern that is NOT case sensitive?
Mar
24
comment How can I search in vim for a pattern that is NOT case sensitive?
@Random832 Yup. Correct. Updated the original question to mention vim instead of vi.
Mar
24
comment How can I search in vim for a pattern that is NOT case sensitive?
As a point of clarification, I am indeed using vim (even though I'm typing vi). Apologies for the confusion.
Mar
24
revised How can I search in vim for a pattern that is NOT case sensitive?
added 2 characters in body; edited tags; edited title
Mar
24
comment How can I search in vim for a pattern that is NOT case sensitive?
@terdon Fine by me, although please consider leaving this comment dialogue in as I tend to use both less and vi and that info is valuable.