How can I pipe the output of the which pip command into an environment variable declaration like export loc = ?
This should do it:
export loc=$(which python)
The output of which python gets assigned to the loc variable which is exported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With