I needed to get my OPENAPI key for use in gsheets, it’s in my env, here’s how to do it in a 1 liner...
instead of parsing the env output. how about having the shell do it for you.
echo $OPENAI_API | pbcopy
but then I wouldn't have a fun teachable moment ;)
Nice! I always use:
```
tr '=' '\t' | awk '{print $2}'
I'll try to use `cut` more 😀
instead of parsing the env output. how about having the shell do it for you.
echo $OPENAI_API | pbcopy
but then I wouldn't have a fun teachable moment ;)
Nice! I always use:
```
tr '=' '\t' | awk '{print $2}'
```
I'll try to use `cut` more 😀