How to check if variable is hex byte string (0x00 - 0xFF) in bash?

前端 未结 0 1892
名媛妹妹
名媛妹妹 2021-02-01 06:24

I need to check if the script parameter ($1 for example) is hex byte ("0x00" - "0xFF") or not.

I have no idea how to write regex in bash.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题