A different way yes, but not necessarily better. I tend to combine a
couple of simple commands to one line in simple little situations like
this rather than having four lines. Just a matter of preference I guess.
I would never combine/pipe in situations like this one
.. it just makes it
harder to read and work with imo.