Run sed and awk in a bash shell process