wada811 / blog

wada811's blog
https://github.com/wada811/blog/issues
Apache License 2.0
6 stars 0 forks source link

curl -O, -J でファイルに出力する / -o FILE でファイル名を指定して出力する #29

Open wada811 opened 5 years ago

wada811 commented 5 years ago

What

-O, --remote-name オプション

ファイルとして出力する。 URL のファイル名が出力するファイル名となる。

-J, --remote-header-name オプション

ファイルとして出力する。 ヘッダーの Content-Disposition のファイル名が出力するファイル名となる。

-o, --output <file> オプション

ファイルとして出力する。 <file> が出力するファイル名となる。

How

-O, --remote-name オプション

curl -O [URL]

-J, --remote-header-name オプション

curl -J [URL]

-o, --output <file> オプション

curl -o <file> [URL]

Ref

curl(1) Curl Manual