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
How to view the contents of .gz file without extracting the file? amitkhiare Shell Programming and Scripting 5 11 Hours Ago 11:29 AM
search for the contents in many file and print that file using shell script cdfd123 Shell Programming and Scripting 3 10-07-2007 07:17 PM
append file name contents to a target file gopskrish UNIX for Dummies Questions & Answers 2 10-27-2006 03:18 AM
Reading specific contents from a file and appending it to another file dnicky Shell Programming and Scripting 5 10-04-2005 02:45 AM
ls contents of a file douknownam Shell Programming and Scripting 7 06-14-2004 06:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 02-24-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
Within your while loop, try echoing all the variables you have assigned. See it they contain the values or not.
Reply With Quote
Forum Sponsor
  #16  
Old 02-24-2006
ReV ReV is offline
Registered User
 

Join Date: Jun 2005
Posts: 34
Hmm.. it seems like all the variables are not assigned. echo produce empty values through the while loop.

Quote:
Originally Posted by vino
Within your while loop, try echoing all the variables you have assigned. See it they contain the values or not.
Reply With Quote
  #17  
Old 02-24-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
Your while loop works just fine. You will have to see whats happening at your end. Probably, the IFS is wrong.
Reply With Quote
  #18  
Old 02-24-2006
ReV ReV is offline
Registered User
 

Join Date: Jun 2005
Posts: 34
I have checked the IFS. It is correct. I am confused

Quote:
Originally Posted by vino
Your while loop works just fine. You will have to see whats happening at your end. Probably, the IFS is wrong.
Reply With Quote
  #19  
Old 02-24-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
Once again, show us what you are doing...
Reply With Quote
  #20  
Old 02-24-2006
ReV ReV is offline
Registered User
 

Join Date: Jun 2005
Posts: 34
Ah... I have got it! the field separator should be IFS=";" format. Thanks a lot for the help!
Reply With Quote
  #21  
Old 02-24-2006
ReV ReV is offline
Registered User
 

Join Date: Jun 2005
Posts: 34
Hi,

I have realised that this script will create one output file which is the last entry in the input file. However, I need to create one ķutput file for each line. The names of the output file need to include the ID. How can I do this?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:31 PM.


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

Content Relevant URLs by vBSEO 3.2.0