"Here is one way to do it: create function fn_HexToIntnt (@str varchar (16)) returns bigint as begin select @str = upper (@str) declare @i int, @len int, @char char (1), @output bigint select @len = len (@str), @i = @len,"
"/ bin / bash if [- e $1]; then read str; else str = $1; fi len = ` expr length $str ` for ((a = 0; a < = $len; a = a+2)); do echo - n $ {str: a: 2} ""; done echo """