On Tue, Oct 12, 2021 at 02:57:01PM -0500, Dennis Williamson
(dennistwilliamson@gmail.com) wrote:
> > > tim=${EPOCHREALTIME//[![:digit:]]/.}
> > Note, I deliberately set LC_NUMERIC that way to get a comma as the
> > decimal point, I presume that's the reason you're trying to do that
> > //[![:digit:]]/. thing.
> Or to do integer math in Bash instead of float math in bc or something.
In that case the decimal point should be removed, not replaced
with a period. That is,
tim=${EPOCHREALTIME//[![:digit:]]/}
or, as there're never multiple decimal points,
tim=${EPOCHREALTIME/[![:digit:]]}
or is there a locale where there could be thousands separators or
something like that in $EPOCHREALTIME?
--
Tapani Tarvainen