perl -anF=\|,\\s -E 'for (my $i=1; $i<=$#F; $i+=2){print $F[$i],qq| +|};print qq|\n|' < file.txt
All power corrupts, but we need electricity.
In reply to Re: one liner function
by NetWallah
in thread one liner function
by besogon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |