List_neurons: how to get list of (active, dissolving, dissolved) neurons belonging to principal id

I’m not super proficient at bash and everything i’ve tried has failed. has anyone had success with this?

maybe this guide helps