arg1=0x011
arg2=0x50a
value="reg: 0x12345678" echo $value | cut -d "x" -f 2
result=$(((16#${value})&$arg1|$arg2 ))
str=$(printf "%08x" ${result})
2023-12-16 16:29:21
arg1=0x011
arg2=0x50a
value="reg: 0x12345678" echo $value | cut -d "x" -f 2
result=$(((16#${value})&$arg1|$arg2 ))
str=$(printf "%08x" ${result})