The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file searching... Kaminski Shell Programming and Scripting 1 02-02-2008 07:23 AM
which is best searching option dbsurf Shell Programming and Scripting 3 01-27-2008 08:33 PM
Searching in VI andyblaylock UNIX for Dummies Questions & Answers 1 11-28-2007 08:32 PM
directory searching st00pid_llama Shell Programming and Scripting 2 05-10-2004 07:21 PM
searching for { yotoruja Shell Programming and Scripting 4 11-03-2003 10:07 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-03-2004
tony3101's Avatar
tony3101 tony3101 is offline
Registered User
  
 

Join Date: Nov 2002
Location: The INTERNET
Posts: 27
Lightbulb searching searching

Guys

Im checking some of my files for errors. I want to be able to find text and make sure it's located on the right place.

Example

Chapter 1
TEXT LKJ
TEXT 12Y
more and more text
Chapter 2
TEXT 34G
TEXT HHG
more and more text
Chapter 3
TEXT FG45
TEXT 11w
more and more text

many more Chapters

To ensure that "TEXT HHG" is located on the right chapter,
I been doing grep -B 100 -A 100 "TEXT HHG" file

but it's still a pain
is there a way I can check if "TEXT HHG" is between Chapter 2 and Chapter 3 ?

Thank you
Tony
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0