w*s 发帖数: 7227 | 1 looking for a simple 1 line solution,
e.g.
tmpfs 200 5 195 2% /tmp
it should return 200.
thanks ! | x****s 发帖数: 921 | 2 in your particular sample, always print 2nd field is easier:
df -m | awk ' { print $2 } ' | I*****y 发帖数: 602 | 3 正则表达式?
\d+
【在 w*s 的大作中提到】 : looking for a simple 1 line solution, : e.g. : tmpfs 200 5 195 2% /tmp : it should return 200. : thanks !
|
|