前向搜索
?=和?!
后向搜索
?<=和?<!
# how to print the web cotent to the console without donwload it.
wget -q -O - http://www.baidu.com/
# with post data
wget -q -O - http://www.baidu.com/ --post-data=imgContinue=Continue+to+image+...+
# or you can use curl
curl http://www.baidu.com/ -d imgContinue=Continue+to+image+...+
# grep something, sometimes you have to grep two times
grep -o "http://www.baidu.com/.*.jpg' title" | grep -o http.*jpg
wget 指定下载目录
wget -P
匹配base64编码
64.txt内容
<img src="https://img-blog.csdnimg.cn/2022010705210734799.png" alt="">
grep -o '<img src="https://img-blog.csdnimg.cn/2022010705210734408.png" alt=""' 64.txt