Hi

On 14/10/15 13:49, Stephen Irons wrote:

DISKTEMP=$(smartctl -A /dev/sdc | grep Temperature_Celsius | awk '{print $10}')

I prefer to use $(...) rather than backticks `...` to capture stdout
from a command pipeline into a shell variable.


Why $( ) instead of backticks ???

Derek.

--
Sent from my Ubuntu computer

_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to