in reply to Re^2: Commify function regex in Perl vs sed (off-topic sed)
in thread Commify function regex in Perl vs sed
> echo "$NUM" | sed -r ':a;s/^([-+]?[0-9]+)([0-9]{3})/\1,\2/;ta'
IMHO not the same thing, but if you're happy... 🤷🏻♂️
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|