标签:cut 语法 color bsp res result val shel reg
arg1=0x011
arg2=0x50a
value="reg: 0x12345678" value=$(echo $value | cut -d "x" -f 2)
result=$(((16#${value})&$arg1|$arg2 ))
str=$(printf "%08x" ${result})
标签:cut 语法 color bsp res result val shel reg
原文地址:https://www.cnblogs.com/sinferwu/p/12909670.html