Getting a tool version from asdf (improved)
TIL Rating: good-to-know
$ asdf current nodejs 2>&1 | awk '{print $2}'
22.11.0It’s an improved version of the previously mentioned solution.
Kudos to André Wendt who showed me how to replace sed and cut with awk.