取绝对值awk '{printf("%d",sqrt($1*$1))}' test.csv

自定义函数echo "4 105" | awk 'function max(a,b){return a>b?a:b}{print max($1, $2)}'