I\'m getting -bash: warning: command substitution: ignored null byte in input when I run model=$(cat /proc/device-tree/model)
-bash: warning: command substitution: ignored null byte in input
model=$(cat /proc/device-tree/model)
bash
If you just want to delete the null byte:
model=$(tr -d '\0' < /proc/device-tree/model)