Return value from rust execute to bash variable

Hi,

Is there any way we can return a value from a rust binary executable to a variable in shell?

You can print the contents to the console and put the output of the program in a variable.

1 Like