#!/bin/bash # # 11111111111111111111111111111111111111111111111111 # 11111111112222222222333333333344444444445555555555666666666677777777778888888888999999999900000000001111111111222222222233333333334444444444 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 # /home/wiley/lib/log/05.01/runlog.050112-172935.bz2:<: 1050112.173035.179 : Quixadhal (adork@24.247.116.59.kzo.mi.chartermi.net) has connected. # # 56-72, 75- bzgrep ' has connected.' ~wiley/lib/log/??.??/runlog.*.bz2 ~wiley/lib/log/runlog.*.bz2 \ | cut -c 56-72,75- # | perl -nle '/.*\:\s(\d\d\d)(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\.(\d+)\s\:\s(\w+)\s\(([\w\.\@]+)\)\shas\sconnected\./gmix;($y,$M,$d,$h,$m,$s,$ms,$name,$addr)=($1,$2,$3,$4,$5,$6,$7,$8,$9);printf("%04d%02d%02d.%02d%02d%02d.%d %s %s\n", $y+1900, $M, $d, $h, $m, $s, $ms, $name, $addr);'