Jim Freeze
3/21/2005 12:41:00 PM
* "Peña, Botp" <botp@delmonte-phil.com> [2005-03-21 16:08:41 +0900]:
> Jim Freeze [mailto:jim@freeze.org] wrote:
>
> // ruby -pe '$_.gsub!(/(\d+)/, Time.local("\\1".to_i).to_s)'
> ///var..access.log
>
> Jim, thanks for that quick tip. It has some slight drawbacks though. I get
> all January 1sts.
Oops. I should have submitted the block version of gsub.
--
Jim Freeze
Code Red. Code Ruby