by shigemk2

当面は技術的なことしか書かない

2014-10-21から1日間の記事一覧

sshでzgrepを実行したい。

grepコマンド|Linuxコマンド grepコマンド|Linuxコマンド zgrep -hでファイル名を表示させない。 for host in server1 server2 server3; do printf "${host} "; ssh $host 'zgrep -h \"-\" /var/log/httpd/access_log.201410*' >> hoge.log done

egrepでごにょごにょ

Linux コマンド 勉強中 - egrep 高度な正規表現検索してマッチした行を出力する 適当なメモ。 egrepで正規表現つきのgrepができるので。oオプションでヒットしたやつだけ取り出す。 sort -rで逆さにソートする。 egrep -o h[0-9]{20} hoge.log | sort | uniq…

mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows)

mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows) なるエラーについて。 SSLについてのメッセージ Apache + SSL = Error!! Apache + SSL = Error!! mod_ssl: SSL handshake interrupted by s…