I have the following bash command:
cat setup.py | grep name=`
This returns the line
name='SOME_PROJECTNAME',
How would I pipe this output from grep to just retrieve SOME_PROJECTNAME
?
I have tried
cat setup.py | grep name= | tr -d 'name=','
but this removes characters in SOME_PROJECTNAME
.