0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

wgetがなかったのでcurlで対処した

Posted at

Macにはwgetがなく、参考書でいきなり出現したのでwgetの代わりとなるcurlの使い方をメモ

参考書内のwgetコマンドは

wget URL -P 保存先ディレクトリ

となっているため、curlに置き換えて対処しました。

curl URL > 保存先ディレクトリのパス/ファイル名

今回、私はgitのja.ymファイルを取得して、config/localesに保存したかったので

curl [https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml](https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml) > config/locales/ja.yml

となりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?