Atribuir resultado DIFF em uma variável no script de shell

some_var="$(diff "./helloworld$x.out" "./output/helloworld$x.out")"
Worried Wildebeest