in reply to Re^4: How can I replace the pattern in the 6 th field?
in thread How can I replace the pattern in the 6 th field?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How can I replace the pattern in the 6 th field?
by AnomalousMonk (Archbishop) on Jun 18, 2018 at 21:38 UTC | |
by Laurent_R (Canon) on Jun 19, 2018 at 07:54 UTC |