Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「XXXXX」という名前のフォルダがたくさんあるので、名前を「OOOO」に変更するだけです。スクリプトの書き方を教えてください。
フォルダーがネストされている場合は、次のように、コマンドを追加してfindコマンドを使用します。remane
find
remane
find /path/to/your/folder -depth -iname XXXX -execdir rename s/XXXX/OOOO/ {} \;
それ以外の場合は、次を使用しますrename。
rename
rename s/XXXX/OOOO/