シェルスクリプトのメモ
カレントフォルダ以下のnode_modulesフォルダを全消し
気づいたらnode_modulesフォルダが、かなり容量をくっていたので一気に削除。
# bash
find . -name "node_modules" -type d -prune -exec rm -rf {} \;
# power shell
Get-ChildItem -Path . -Recurse -Directory -Filter "node_modules" | ForEach-Object { Remove-Item -Recurse -Force $_.FullName }
ディスカッション
コメント一覧
まだ、コメントがありません