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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
While loop reading a record shortyball24 Shell Programming and Scripting 9 03-26-2009 07:19 PM
problem in reading a file er_zeeshan05 Shell Programming and Scripting 4 11-06-2008 09:47 PM
problem in reading file using fread arunkumar_mca High Level Programming 4 10-30-2006 08:02 PM
help me ...problem in reading a file brkavi_in Shell Programming and Scripting 6 06-19-2006 01:41 PM
Reading a CSV file into shell variables problem multidogzoomom Shell Programming and Scripting 6 10-11-2005 05:43 PM

 
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 07-17-2009
mac4rfree mac4rfree is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 170
problem in reading a record from the file

Hi Guys,

I need to check whether the last column is RP, If so, then i have to second column and pass it to a select statement as sonid and fetch the value to a variable and run it. This has to be done till the last column is RW.

value Fatherid sonid topid Rrecord
45.000000 53701179 53701399 115390862 RP
96.400000 77748483 77747303 115369623 RP
100.000000 115373349 52628463 115373341 RP
100.000000 115373353 52628463 115373341 RP
100.000000 115373470 52628463 115373462 RP
100.000000 115373474 52628463 115373462 RP

I am having a hard time in reading the last column from the file.

Guys, help me out..
Thanks for the help in advance,

Regards,
Magesh
 

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 08:28 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