Fore!
perl -lane 'for(@F[1..4]){$_=0if$_>1000};print"@F"'
Update: Shave a couple of strokes.
perl -lape 'for(@F[1..4]){$_=0if$_>1000};$_="@F"'
--
We're looking for people in ATL
In reply to Re: String Search/Replace
by Fletch
in thread String Search/Replace
by crep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |