[SunHELP] How to substract hexadecimal numbers in sh script

Thomas Cameron sunhelp at sunhelp.org
Thu Oct 4 11:27:19 CDT 2001


[root at conjurer /root]# cat file.txt
a b c d e f
[root at conjurer /root]# tr [a-z] [A-Z] < file.txt
A B C D E F
[root at conjurer /root]#

Regards,
Thomas Cameron

Gurcan ERIM wrote:

>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. 
>
>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.
>
>Grcan
>
>
>
>
>
>_______________________________________________________
>http://inbox.excite.com
>
>
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp
>






More information about the SunHELP mailing list