Greg Wooledge (12020-07-14): > > echo " 34 + 45 \| abc \| 1 2 3 \| c\|123abc " | perl -F'\\\|' -lanE 'say > > "\"".$_."\"" for @F' > > If you're going to call on perl to help split the string into an > array, you might as well throw bash away and write the entire program > in perl instead.
I concur. And I would advise against using the features of perl that makes it automatically behave somewhat like awk or others, with implicit parameters and the like. Better write what you mean explicitly and readably. Regards, -- Nicolas George
signature.asc
Description: PGP signature