エンジニアを目指す初学者に向けて、わかりやすく解説したブログです。
サイトをリニューアルしました ターミナル操作
2025-01-25
grepで特定のディレクトリを検索対象から除外する

--exclude-dirオプションを使うことで、node_modulesやdist、.gitなど特定のディレクトリを検索対象外にすることができる。
--exclude-dirオプションを使うことで、node_modulesやdist、.gitなど特定のディレクトリを検索対象外にすることができる。