0
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?

macOS logファイル から指定文字列を探す|ターミナル grep

Posted at

macOS grep LOGファイル内文字列検索

macOSで LOGファイル(テキストファイル)から指定の文字列を検索する

下記の方法で、 指定ファイル内のIPアドレスを検索できる。

find . -type f -name "*.log" -exec grep -Hn --color=auto "52.xxx.xx.xxx" {} + 

--color=autoをつけると色指定可能

0
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
0
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?