wget --output-document=- http://www.tip.it/runescape/grand-exchange-centre 2>/dev/null \
| grep "The Grand Exchange updated" \
将输出如下内容:
<h4 id="gec_update_time">The Grand Exchange updated <span><b>1</b> days, <b>12</b> hours, <b>45</b> minutes and <b>1</b> seconds ago</span></h4>
我的目标是修剪它,使其只输出:
1 days, 12 hours, 45 minutes, 1 seconds
不太好用,有什么建议吗?