number.txt
number1 = 123
number2 = 234
#!bin/bash
cat number.txt
num1=$(cat number.txt |grep 'number1 =' | awk '{print $3}')
num2=$(cat number.txt |grep 'number2 =' | awk '{print $3}')
sum='expr $num1 + $num2'
echo total = $sum >> number.txt
第一程序,留念