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.
ディレクトリ(およびすべてのサブディレクトリ)のすべてのファイル名で、「所有者」という単語を「ユーザー」に置き換えようとしています。
元。
owners_controller => users_controller owner.rb => user.rb
どんな助けでもいただければ幸いです
インストールしていない場合rename、これは合理的な代替手段となるはずです (bashシェルと仮定して):
rename
bash
while read entry do mv "${entry}" "${entry/owner/user}" done < <(find . -depth -name '*owner*' -print)