『壹』 wget命令詳解是什麼
echo"請輸入您要測試的web鏈接用空格隔開!"
readinput
input_array=(${input})
len=${#input_array[@]}
echo>data
echo>goodlink
if[["${len}"-gt"0"]];then
for((index=0;index<len;++index));do
echo${input_array[index]}>>data
resp_status=$(wget--save-headers-q-O-${input_array[index]}|grep-o'200OK')
if[["$resp_status"!=""]];then。
這一類參數主要提供軟體的一些基本信息。
-V,--version 顯示軟體版本號然後退出;
-h,--help顯示軟體幫助信息;
-e,--execute=COMMAND 執行一個 「.wgetrc」命令
以上每一個功能有長短兩個參數,長短功能一樣,都可以使用。需要注意的是,這里的-e參數是執行一個.wgettrc的命令,.wgettrc命令其實是一個參數列表,直接將軟體需要的參數寫在一起就可以了。