perl -le 'for(@ARGV){ s/(?=SUM).*\K..//; print }' abcSUMcdexx abcSUXcd +exx abcSUMc
Outputs:
abcSUMcde abcSUXcdexx abcSU
( borrowing bits and pieces and ideas from other monks... )
In reply to Re: Trim Two Characters On Line
by tybalt89
in thread Trim Two Characters On Line
by jalopez453
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |