in reply to String Search/Replace

Another one liner:
perl -lape 's/\S+\s+//&&s/(\d+)/$1>1000?0:$1/ge' filename
Update: ok this (even shorter) does not remove the timestamp:
perl -pe 's/(?<=\s)(\d+)/$1>1000?0:$1/ge' filename


Replies are listed 'Best First'.
Re^2: String Search/Replace
by ikegami (Patriarch) on Aug 31, 2005 at 14:58 UTC
    That removes the timestamp.