0
我正在編寫一個bash腳本,它將下載頁面,然後搜索jpg鏈接並下載它們。我遇到了grep/sed命令,無法讓他們找到鏈接。到目前爲止,我已經試過:如何在linux中從string1搜索到string2?
grep -e "http.*" -e ".*jpg" -n wget.html
和
sed -n '/http/,/jpg/p' wget.html
如何從搜索HTTP://爲JPG在Linux?或者,除了sed,grep還有其他的方法嗎?
grep的 - e「http。*」-e「。* jpg」-n wget.html和sed -n'/ filmix /,/ jpg/p'wget.html – 2011-12-16 19:24:00
bash不是一個很好的工具 – Daenyth 2011-12-16 19:27:56