Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 131 Bytes

awk.rst

File metadata and controls

10 lines (7 loc) · 131 Bytes

awk

# 求和
awk '{sum += $1};END {print sum}'

# 字符串转 int
awk '{print int($1)}'