[SunHELP] How to substract hexadecimal numbers in sh script
DAUBIGNE Sebastien - BOR
sunhelp at sunhelp.org
Thu Oct 4 06:27:40 CDT 2001
> echo "upper" | tr '[a-z]' '[A-Z]'
UPPER
---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr <mailto:sebastien.daubigne at sema.fr> - (+33)
(0)5.57.26.56.36
Sema Global Services - AFM/DW/Pessac
-----Message d'origine-----
De: Gurcan ERIM [SMTP:gurcanerim at excite.com]
Date: jeudi 4 octobre 2001 11:14
=C0: sunhelp at sunhelp.org
Objet: [SunHELP] How to substract hexadecimal numbers in sh script
Hi,
I need to substract to hexadecimal numbers. I can do this with bc
but it
looks for uppercase letters. (A,B,C,D,E,F) but my source file has
numbers
with lowercase.=20
Is it possible to implement lowercase letters as hexadecimal?
Or
How can i change lowercase to upper, any practical suggest, like
using sed,
awk, or printf etc.?
Thanks.
G=FCrcan
_______________________________________________________
http://inbox.excite.com
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
=09
**********************************************************************
This footnote confirms that this email message has been swept for
the
presence of computer viruses.
SchlumbergerSema - Sophia Antipolis
NetworkTeam.Sophia at sema.fr
=09
**********************************************************************
More information about the SunHELP
mailing list