是否有任何 bash/shell 命令来获得两个数字的绝对差异?例如。-
-10 and -5 is 5, -10 and 10 is 20, 7 and 21 is 14& 的绝对差异100 and -11 is 111。
-10 and -5 is 5
-10 and 10 is 20
7 and 21 is 14
100 and -11 is 111
或者有什么解决方法可以找到它?请帮忙。
python bash shell awk
awk ×1
bash ×1
python ×1
shell ×1