1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[Mac]シェルスクリプトで、特定の文字列があるかをフォルダの配下の全ファイルに対して再帰的に検索したい[Terminal]

Posted at

解決法

grep -r "targetstring" . <- 最後の.を忘れずに。

grep -r "hogehoge" .

これで、どのファイルにターゲットの文字列が含まれるかが全て表示される。

参考

Search for string recursively in all files and folders

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?