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
shell script ` ` need help if in the right place kim187 UNIX Desktop for Dummies Questions & Answers 2 07-14-2008 03:09 PM
When does LK actually take place? lerdahl SUN Solaris 0 01-17-2008 01:59 PM
How to place logo onto movie? ramis55 UNIX Desktop for Dummies Questions & Answers 0 08-24-2005 06:35 AM
How to place the output of two different echo statements on one line JoBa Shell Programming and Scripting 5 11-20-2002 10:54 AM
best place for unix drivers ? jimmyok UNIX for Dummies Questions & Answers 1 02-04-2002 09:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-19-2008
Navigatorchief Navigatorchief is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 1
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, 18 views)
File Type: zip Trends.zip (239.1 KB, 4 views)
  #2 (permalink)  
Old 02-19-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
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?
Closed Thread

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 11: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