Some would call the former command cat abuse.
In short, unless you want the contents of a file printed to stdout (or multiple files concatenated), the command can probably be written without cat
, instead using the filename as an argument (grep pattern file
) or IO redirection (cmd < file
).
Stylistics and readability are another thing though.
I don’t know how to say this, but…you have extremely uncommon use-cases:
Many people listen to music on stereos and don’t necessarily want a device plugged in, so
either doesn’t work or is substantially less convenient than e.g. casting from a phone.
Not hating on your setup at all, but it’s very niche, in my experience.