LoginSignup
3
1

More than 3 years have passed since last update.

ターミナルでファイル名を一括変換する(例: 全てのアンダーバーを削除)

Posted at

環境

  • Mac
  • iTerm

準備

brew install rename

実行

変換したいファイルがあるディレクトリまで cd コマンドだったりで行って、

// これは自分が実行したコマンド 
// 「_」のついているファイルの 「_」を消す
find . -depth -name "_"| rename -s "_" ""

// これだけでもOK
rename -s "_" ""

// ちょっと解説
rename -s "変換前の文字" "変換後の文字"

おしまい

3
1
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
3
1