下列命令獲取title的內容:
cat test.html | tr [TITLE] [title] | grep '<test>.*</title>' | sed 's/<title>\(.*\)<\/title>/\1/g'
description的語法我看不大明白,所以不知道怎麽提取。
只簡單測試了壹下,LZ可以試試。