curl -o 的 wget 成语是什么?

myW*_*SON 2 shell bash wget curl

所以我在一些函数中使用代码,比如

if [ ! -e $DOWNLOADS/$1 ]; then
    echo_run curl -L http://$4/$5/$1 -o $DOWNLOADS/$1
fi
Run Code Online (Sandbox Code Playgroud)

我想知道如何在没有卷曲的情况下实现同样的目标?

Ulr*_*arz 7

迪克西特man wget

   -O file
   --output-document=file
       The documents will not be written to the appropriate files, but all will be concatenated together
       and written to file.  If - is used as file, documents will be printed to standard output,
       disabling link conversion.  (Use ./- to print to a file literally named -.)

       Use of -O is not intended to mean simply "use the name file instead of the one in the URL;"
       rather, it is analogous to shell redirection: wget -O file http://foo is intended to work like
       wget -O - http://foo > file; file will be truncated immediately, and all downloaded content will
       be written there.
Run Code Online (Sandbox Code Playgroud)

  • @jw013:在这种情况下,大致是“如此说”。它暗指早期的算术手稿“Dixit Algorismi”;即引用权威著作。 (3认同)