1#!/bin/sh 2 3awk '/^Edu/ { print "edu_NOW=" $2 "\nhap_NOW=" $4 } 4 /^Happiness needed is/ { print "hap_NEED=" $4 } 5 ' >> tmp/happyout 6