|
-
August 7th, 2009, 10:06 AM
#1
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.
-
August 12th, 2009, 11:34 AM
#2
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.
-
August 12th, 2009, 12:13 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|