jq . users|grep NumberOfPeople | awk -F "\"" '{ print $4 }'| while read line do NumberOfPeople=$(($NumberOfPeople+$line)) touch /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfPeople echo $NumberOfPeople >NumberOfPeople done jq . users|grep NumberOfChild | awk -F "\"" '{ print $4 }'| while read line do NumberOfChild=$(($NumberOfChild+$line)) touch /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfChild echo $NumberOfChild >NumberOfChild done jq . users|grep NumberOfBaby | awk -F "\"" '{ print $4 }'| while read line do NumberOfBaby=$(($NumberOfBaby+$line)) touch /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfBaby echo $NumberOfBaby >NumberOfBaby done echo "7歲以上`cat /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfPeople`位" echo "3~7歲`cat /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfChild`位" echo "2歲以下`cat /root/TS832xu/Deverloper/liff-push_2series/changepage/changepage/NumberOfBaby`位"