(自身の備忘録用です)
grep時、除外したいフォルダがある場合、--exclude-dir
を付与します
grep -r [検索文字列] --exclude-dir=[除外フォルダ] ./
例)
grep -r [検索文字列] --exclude-dir=node_modules ./
grep -r [検索文字列] --exclude-dir={node_modules,tests} ./
→複数指定したい場合は括弧で囲む
Go to list of users who liked
More than 3 years have passed since last update.
(自身の備忘録用です)
grep時、除外したいフォルダがある場合、--exclude-dir
を付与します
grep -r [検索文字列] --exclude-dir=[除外フォルダ] ./
例)
grep -r [検索文字列] --exclude-dir=node_modules ./
grep -r [検索文字列] --exclude-dir={node_modules,tests} ./
→複数指定したい場合は括弧で囲む
Register as a new user and use Qiita more conveniently
Go to list of users who liked