Can anyone tell me how to set the output of a command to a variable?
Basically, I'm looking for the Python equivalent to this bash example:
blah="ajsdlk akajl <ajksd@ajksldf.com>"
blah=$(echo "$blah" | cut -d '<' -f 2 | cut -d '>' -f 1)
echo "$blah"
ajksd@ajksldf.com