How to get variable from text file into Bash variable
i have a text file i that has a mailTo: NAME in it. In a bash script i need to extract NAME and put it in a $variable to use. How do i do this?
|
Code:
variable=`grep mailTo | cut -d ":" -f 2` |
#!/bin/sh
. mailTofile.txt echo $variable |
All times are GMT -5. The time now is 09:56 PM. |