On 10/14/2015 01:52 PM, Derek Smithies wrote:
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.
It runs in the same process, instead of starting a new one just for the
commend within the backticks.
--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users