[Shell] Read a File from script
I know it is possible to read from a file using the awk command,
but can I read a config file and put each result in a different variable of my script. Code:
email=user@domain If someone could show me... Thank you |
Code:
. FILE_ABOVE |
thanks Matir but could you be a bit more explicit?
Thanks for your answer though :) |
If the file is composed of name=value pairs, you can just source it and access the name as a variable of type $name.
|
Quote:
If there was a "slapping one's own forehead" smilie, I'd use it just here. Graham |
All times are GMT -5. The time now is 05:34 PM. |