1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

複数ログファイルをgrepしてマッチした行数を出力するシェルスクリプト

1
Last updated at Posted at 2017-01-23

この記事は個人ブログに移行しました。最新情報はブログ版をご覧ください。

要点

  • 下記のようなことをしたいとき、ありますよねー。 エラーログから特定のエラーが何回発生したか知りたい アクセスログから特定のページへのアクセス数を知りたい 複数ファイルをgrepしてマッチした行数をファイル毎に出力するシェルスクリプトです。
    • エラーログから特定のエラーが何回発生したか知りたい - アクセスログから特定のページへのアクセス数を知りたい 複数ファイルをgrepしてマッチした行数をファイル毎に出力するシェルスクリプトです。
  • 複数ログファイルをgrepしてマッチした行数を出力 出力結果はこんな感じ。

もっと詳しく

  • ブログではコード全文や補足資料を継続的に更新しています
  • 気になる点があればコメントください🙌
1
1
1

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?