1
robhsiao 2012-09-10 22:22:17 +08:00
curl -s http://php.net/downloads.php | grep 'Current stable' | perl -nle 'print $1 if m/(\d+\.\d+\.\d+)/'
|
2
WangYan OP 感谢 @robhsiao
是我愚钝了,没想到用curl。segmentfault.com 中的“大盗贼”给出了我更喜欢的答案。 curl -s http://www.php.net/downloads.php |grep "Current stable" |awk '{print $3}' |
3
cute 2012-09-11 11:47:57 +08:00
curl -s http://www.php.net/downloads.php|awk '/Current stable/{print $3}'
|