Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
can anyone suggest a way of doing this in perl?while read line do SOURCEIP=`echo $line| sed 's/.*" "//g'|sed 's/"//g'` MEAT=`echo $line|cut -d" " -f2-` echo $SOURCEIP $MEAT >>${LOG}.txt done<$LOG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reformat log files
by choroba (Cardinal) on Aug 31, 2012 at 12:51 UTC | |
by Anonymous Monk on Aug 31, 2012 at 13:03 UTC | |
|
Re: reformat log files
by philiprbrenan (Monk) on Aug 31, 2012 at 13:25 UTC |