0
2

More than 5 years have passed since last update.

macOS Sierraのターミナルでファイル名を変更したい

Last updated at Posted at 2019-05-24

// この記事は、 note に投稿した記事の再掲です。

Mac で $ rename を実行したら以下のエラーが出た(HTML 拡張子を PHP に変更したい)

# HTML 拡張子を PHP に変更したい
$ rename -s html php *.html

# でもエラーが出る
sh: rename: command not found

$ rename をインストール

Mac には $ rename が入ってないらしいので Homebrew からインストール

$ brew install rename

再チャレンジ

# $ rename -s 置換する文字列 置換後の文字列 対象のファイル
$ rename -s html php *.html

できた!

0
2
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
2