Desde un script de shell, hay una forma de usar cualquier método estático público de Java (y, por ejemplo, Math.min()). Desde bash en Linux:
. jsbInit
jsbStart
A=2
B=3
C=$(jsb Math.min "$A" "$B")
echo "$C"
Esto requiere Java Shell Bridgehttps://sourceforge.net/projects/jsbridge/
Muy rápido, porque las llamadas a métodos se canalizan internamente ; no se requiere ningún proceso.
Добавить -
в качестве аргумента командной строки для zathura:
man -t awk | ps2pdf - - | zathura -
как написано на справочной странице:
zathura displays the given files. If a single hyphen-minus (-) is given
as file name, the content will be read from the standard input.