[bash] Store output of sed into a variable