Przypisz wynik diff do zmiennej w skrypcie powłoki

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