![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Code:
#!/bin/ksh
while read line
do
echo "do whatever with [${line}]"
done < myFileWithDirs
|
||||
| Google The UNIX and Linux Forums |