That seems to depend on the eighth or other subsequent field being a negative number. In the following, doesn't Sender get its parens zapped?Yeah, you're right++, the solution really depends on the actual detailed data format, which we don't really know.
Splitting the input on the first dash (with the split /PATTERN/,EXPR,LIMIT syntax with an appropriate LIMIT (I guess this should be 2, I can't test right now) should probably yield the desired result.
In reply to Re^5: How can I replace the pattern in the 6 th field?
by Laurent_R
in thread How can I replace the pattern in the 6 th field?
by theravadamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |