# 確認 find ./ -type f | grep index.html find ./ -type f | grep .gitkeep # 配下の index.html を .gitkeep へ置換 find ./ -type f | grep index.html | sed 'p;s|index.html|.gitkeep|g' | xargs -n2 git mv # 確認 find ./ -type f | grep index.html find ./ -type f | grep .gitkeep