Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7433283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:35:26+00:00 2026-05-29T09:35:26+00:00

I want to extract from SVN log all text between the lines. If it

  • 0

I want to extract from SVN log all text between the lines. If it is with sed, awk or grep it’s better.

Example: svn.log

------------------------------------------------------------------------
r1075 | popad | 2011-12-02 14:28:20 +0200 (Fri, 02 Dec 2011) | 1 line
Changed paths:
   M /trunk/apps/frontend/modules/mail/templates/candidateSearchAgentSuccess.php
   M /trunk/apps/test.php

Ticket #1000: removing ads from emails
------------------------------------------------------------------------
r1074 | coman | 2011-11-30 10:51:29 +0200 (Wed, 30 Nov 2011) | 3 lines
Changed paths:
M /trunk/apps/frontend/i18n/messages.de.xml
M /trunk/apps/frontend/i18n/messages.en.xml
M /trunk/apps/frontend/i18n/messages.ro.xml

Ticket #1089: translation update: send to friend form
http://example.com/projects/147/tickets/1089
Solved HU translation update


------------------------------------------------------------------------

I want to search for Ticket #1000 and retrieve entire block between the lines

------------------------------------------------------------------------
r1075 | popad | 2011-12-02 14:28:20 +0200 (Fri, 02 Dec 2011) | 1 line
Changed paths:
   M /trunk/apps/frontend/saSuccess.php
   M /trunk/apps/frontend/saAddSuccess.php

Ticket #1000: removing ads from emails
------------------------------------------------------------------------

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:35:27+00:00Added an answer on May 29, 2026 at 9:35 am

    this awk oneliner gives you the output you need:

    awk -vRS='-+\n' '/Ticket #1000/' svn.log
    

    test

    kent$  awk -vRS='-+\n' '/Ticket #1000/' svn.log 
    
    r1075 | popad | 2011-12-02 14:28:20 +0200 (Fri, 02 Dec 2011) | 1 line
    Changed paths:
       M /trunk/apps/frontend/modules/mail/templates/candidateSearchAgentSuccess.php
       M /trunk/apps/test.php
    
    Ticket #1000: removing ads from emails
    

    You have seen that the line separator (—–) was not in output. it could be easily added if you really need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to extract from a webpage all URLs how can I do that
I have a big problem. I want to extract text from html table that
I'm new to python. I want to extract some text from the CNN website.
I want to extract the text information (Chinese) from the images that picked by
I want to extract text from span elements with no class name. How can
I want to extract text from $_SERVER['HTTP_REFERER'] let's say $_SERVER['HTTP_REFERER'] = http://www.google.com/search?source=ig&hl=en&rlz=&q=something+i+am+looking+for&aq=f&oq=&aqi= then I
I want to extract text from a column using regular expressions in Oracle 11g.
From a modal MFC dialog, I want to extract text from an edit box
I want to extract information from user-inputted text. Imagine I input the following: SetVariables
I am working with Python 3.x I want to extract text from several webpages.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.