CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    9

    Shell: Search for two different strings

    Hi All,

    This could be a really simple one.

    I want to search for "String_1" in a text file and when it's found to then search for "String_2" from that point onwards.

    What is the best way /command to do this?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2002
    Location
    Brazil
    Posts
    730

    Re: Shell: Search for two different strings

    Please be more specific.

    You're using a terminal like DOS or Bash (Linux) or you want to accomplish that with a programming language?
    All consequences are eternal in some way.

  3. #3
    Join Date
    Dec 2008
    Posts
    9

    Re: Shell: Search for two different strings

    Sorry,
    It's Unix so Bourne, Korn shell or even Perl would do.
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured