The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script ` ` need help if in the right place kim187 UNIX Desktop for Dummies Questions & Answers 2 07-14-2008 12:09 PM
When does LK actually take place? lerdahl SUN Solaris 0 01-17-2008 09:59 AM
How to place logo onto movie? ramis55 UNIX Desktop for Dummies Questions & Answers 0 08-24-2005 03:35 AM
How to place the output of two different echo statements on one line JoBa Shell Programming and Scripting 5 11-20-2002 06:54 AM
best place for unix drivers ? jimmyok UNIX for Dummies Questions & Answers 1 02-04-2002 05:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Stumble this Post!
Getting the value of a line, that changes place

Hi

I am trying to get the value of several results in a file called seq032.diag.

The values I am looking for is down under Smooth Tracking nodes and is for g01r01 g02r01 s01t02 etc etc. The problem is that when I try to use look for text and tail etc, it works fine in one result file. In the next result file there might be more Tracking nodes in the file so they actually change place in the file.

Can anyone help me out here ?

I am attaching my script and two diag files

Much obliged

Johnny
Attached Files
File Type: txt trend_anal_script_Patriot_6str.txt (10.9 KB, 6 views)
File Type: zip Trends.zip (239.1 KB, 4 views)
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-19-2008
joeyg's Avatar
premier etoile de match
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 625
Stumble this Post!
Cool Perhaps the trick is to work with a smaller file

While I took a quick look at the code and sample files, and read your comments about organization of lines... could you:

(a) 'grep' the lines that meet the general criteria to a temp file
(b) 'sort' the lines in that new smaller file into a consistent order

then, you might have more control over the format, layout and order of the data?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0