第一题:
cat test.txt |sed -n 's/\([0-9]\+\)/,\1,/p'
第二题:
curl -s http://cip.cc|awk -F '/' '/URL/{print $4}'