I am running [some programs](https://njw.name/getxbook/getxbook-1.2.tar.xz) in Bash in Ubuntu.

The programs download something using network sockets. Their README file says they can be used with tor, and I hope to change the external IP address by using tor with the programs.

I have tried to look up how to use tor with a program in shell on the Internet including tor's official website, but I haven't found a step-by-step explanation. Could you show me how to use a program with tor in Bash, and maybe also point to some resources for learning? (I have some but not much knowledge about networks and network programming.) Thanks.