The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Awk/shell question: Read from file and assign to variables. akbar Shell Programming and Scripting 3 05-07-2008 03:10 PM
how to check a word in a file and assign to a variable hippo2020 Shell Programming and Scripting 1 06-28-2007 09:00 AM
search file for word, then assign to variable dejit UNIX for Dummies Questions & Answers 2 03-06-2007 10:57 AM
Read the csv file and assign the values in to variable rajbal Shell Programming and Scripting 9 09-28-2006 04:49 PM
Assign value to a variable in a parameter file gopskrish Shell Programming and Scripting 2 06-22-2005 04:26 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2006
Registered User
 

Join Date: Feb 2005
Posts: 68
How to Read a config file and Assign to Variable

I have removeConfig file, it contains the dir paths for removing. I need to read line by line and assign to variable. any idea?
Reply With Quote
Forum Sponsor
  #2  
Old 11-13-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
Code:
#!/bin/ksh

while read line
do
   echo "do whatever with [${line}]"
done < myFileWithDirs
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 04:19 AM.


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