Hacker News new | ask | show | jobs
by ryanthejuggler 4631 days ago
I don't think there's a sysadmin in existence who hasn't misused $(cat). It's really for concatenating 2 files, but only rarely have I ever used it or seen it used for anything other than quickly checking contents of a file; e.g., $(cat package.json | grep version).
1 comments

why not write $(grep version package.json)?