BASH FAQ 082 "Why is $(...) preferred over `...` (backticks)"
http://mywiki.wooledge.org/BashFAQ/082

Stephen Irons

On 14 October 2015 at 13:52, Derek Smithies <[email protected]>
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.
>
> --
> Sent from my Ubuntu computer
>
> _______________________________________________
> Linux-users mailing list
> [email protected]
> http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
>
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to