主题
:
【求助】正则解析参数
查看单个帖子
shiyu46
高级会员
资 料:
注册日期: Sep 2001
帖子: 556
精华: 2,解答: 5
#
8
2020-01-27, 10:26:10
引用:
作者:
马小甲
并不是都是html,文件类型不确定
代码:
-o .*(html|exe|pdf)"*
curl -o "123\ 456.html" baidu.com
curl baidu.com -o 123.html
curl -o 123.pdf baidu.com
curl baidu.com -o 123.html
curl -o 123.exe baidu.com
如果类型不是太多,直接加上就行了,费那那脑细胞做啥
shiyu46
查看公开信息
查找 shiyu46 发表的帖子