in reply to String Search/Replace
Update: ok this (even shorter) does not remove the timestamp:perl -lape 's/\S+\s+//&&s/(\d+)/$1>1000?0:$1/ge' filename
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 |