4 ms·
There is no need to call cat to read from a file. > temp=$(cat /sys/class/thermal/thermal_zone1/temp) temp=$(</sys/class/thermal/thermal_zone1/temp)
by mortenlarsen 4y ago
There is no need to call cat to read from a file.
> temp=$(cat /sys/class/thermal/thermal_zone1/temp)
temp=$(</sys/class/thermal/thermal_zone1/temp)
- 0xCAP 4y agoA classic example of cat abuse in my book.
- deeblering4 4y agomeow
- elsyx 4y agoDefinitely an unwarranted cat call.
- piperswe 4y agoIMO the cat version is more readable, and any performance difference should be negligible