On Fri, Sep 25, 2015 at 8:34 AM, William A. Mahaffey III <w...@hiwaay.net> wrote: > > > I am trying to use awk & grep to fashion a command to print out HDD temps, > along w/ some identifying info: > > [wam@4256EE1, ~, 10:41:29am] 418 % sudo atactl wd0 identify | grep Model > Model: HGST HTS721010A9E630, Rev: JB0OA3J0, Serial #: JR10046P1D5UXN > [wam@4256EE1, ~, 10:41:31am] 419 % sudo atactl wd0 identify | grep Model | > awk '{printf $3 " "}' - > [wam@4256EE1, ~, 10:41:32am] 420 % uname -a > NetBSD 4256EE1.CFD.COM 6.1.5 NetBSD 6.1.5 (GENERIC) amd64 > [wam@4256EE1, ~, 10:41:34am] 421 % > > I am only *weakly* familiar w/ GNU awk, where the above works. What am I > missing here, I expected the above to print out the model # of the HDD. > Please apply the clue-bat generously :-) ....
print not printf Andy