匹配<a href="url">content</a> grep -Po '<a href="(.*.rmvb")>(.*)</a>' te.txt | sed -n 's/<a href=(.*)>(.*)</a>/1 2/p' $1