簡體   English   中英

如何保存shell wget鏈接以下載文件名

[英]How to save the shell wget link to download the file name

例如:wget http://api.np.mobilem.360.cn/redirect/down/?from=zdian_api&appid=5576下載后,我要使用變量abc將下載鏈接保存在此文件名中,以及如何保存應該實現。

我想你是這個意思。

abc=$(wget -qO - http://api.no.mobilem....)

它將wget的輸出保存在名為abc的shell變量中。

那你可以做

echo $abc

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM