Assigning a value as a variable from a text file

I have a txt file

output.txt

Freq = 1900
L = 159

I want to assign the values to a variable so that i can further use it in some other script.
like
F=1900
Len=159
etc

i tried doing something with awk but dosent work

F=$(awk 'BEGIN {}/Freq/ {split ($2,a);depth=a[1]};printf "%d\t, depth/' output.txt)
echo "$F"

is there much simpler command to do so

Hi.

$ F=$(sed -n "/Freq *=/ s/.*= *//p" output.txt)

$ echo $F
1900

It could be a bit easier if your intended variable names matched those in the output.txt file. i.e.

$ cat Vars
while read LHS EQ RHS; do
  case "$LHS" in
    Freq|L) eval $LHS=\"$RHS\";;
  esac
done < output.txt

echo Freq is $Freq
echo L is $L

$ ./Vars
Freq is 1900
L is 159

But even if they don't:

while read LHS EQ RHS; do
  case "$LHS" in
    Freq) F="$RHS";;
    L) Len="$RHS";;
    ... etc
  esac
done < output.txt
$ while read S; do eval "${S// /}"; done <output.txt
$ echo "Freq='$Freq' - L='$L'"
Freq='1900' - L='159'