0

I want to subtract from the output of the nproc command and run another command using the calculated value.

The following doesn't work in linux:

somecommand --set_cpus = (nproc - 1)

1 Answers1

1

You can try like this:

somecommand --set_cpus = `expr $(nproc) - 1`