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
reading data from .ini file vinna Shell Programming and Scripting 2 06-02-2008 08:44 AM
How to make a loop base on reading a file? JohnBalayo UNIX for Dummies Questions & Answers 3 04-02-2008 03:36 AM
How to make a loop base on reading a file? JohnBalayo HP-UX 3 04-01-2008 08:58 PM
Retrieving data bobo UNIX for Dummies Questions & Answers 2 06-23-2006 12:02 PM
data base arunkumar_mca High Level Programming 2 12-29-2004 02:56 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2007
Registered User
 

Join Date: Jan 2007
Posts: 1
Stumble this Post!
Smile Using loop reading a file,retrieving data from data base.

Hi All,

I am having trouble through, I am reading the input from tab delimited file containing several records,

e.g.

line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..

on the basis of certain fields for each record in input file, I have to retrieve data from oracale database.

and using copy command move the record to different location..


Thanks in advance.
Sonu.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-18-2007
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Stumble this Post!
Code:
while read fld1 fld2 fld3
do
echo $fld1 $fld2 $fld3
done<file
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:00 AM.


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