カレントディレクトリ配下の .DS_Store ファイルをすべて削除する場合
find . -name ".DS_Store" -type f -print -delete
カレントディレクトリ配下の .git ディレクトリをすべて削除する場合
find . -name ".git" -type d -print -exec rm -rf {} +
カレントディレクトリ配下の .DS_Store ファイルをすべて削除する場合
find . -name ".DS_Store" -type f -print -delete
カレントディレクトリ配下の .git ディレクトリをすべて削除する場合
find . -name ".git" -type d -print -exec rm -rf {} +
コメント