use bash =~ to replace echo {a} | grep -E -o