That is a bash-ism though. Not faster enough to be worth getting into the habit of, if you also need to write portable scripts ever. (Which in Debian-based distros, you likely do.)export MachineID=$(<DeviceName.txt)
Assuming the file is only one line, we have also:
Code:
read MachineID <DeviceName.txtexport MachineID
Statistics: Posted by jojopi — Fri Aug 30, 2024 4:52 pm