in reply to String Search/Replace

I like golf about as much as the next person, but how about something a bit more expansive:
#!/usr/bin/perl use strict; while (<>) { my ($timestamp, $number, @rest) = split; $number = 0 if ($number > 1000); print "$timestamp $number @rest\n"; }
The solutions above work in place. This one is a filter. To use it do something like this:
./filter < input > output
But don't make output the same as input or the shell will kill your data.

Phil