units command, crazy output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



whenever I use the units command from a script, e.g.:

elapsed=86500
echo elapsed time: `units "$elapsed sec" hms`
elapsed time: *Currency exchange rates from 2012-10-24* 24 hr + 1 min + 40
sec

the man page even says it outputs that when run without arguments.

My question is why in the world does it? certainly when run from within a
script doing conversions of time using the "hms" option, I don't want that
to be stuck in the middle of my output.

Anybody know why it does that, or how to make it quit? (I know, I use sed
to filter it out, but can't understand why I should have to.

Thanks in advance!

Fred
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux