News for hackers. Stuff that matters.
Re:An Illustrated Guide to Useful Command Line Tools by arundelo on Saturday October 26, 2019 @09:33AM (#21363557)
I guess the author was thinking of how cat's original purpose is to concatenate multiple files, not show just one file. (But I certainly don't think using cat in the latter way is a misuse.)

There's also a commonly noted "unnecessary use of cat" where people do this:

  cat file.txt | grep foo
instead of this:

  <file.txt grep.foo
but that's not relevant to bat (which can be used unnecessarily in the same way).
Re:An Illustrated Guide to Useful Command Line Tools by weaksauce on Saturday October 26, 2019 @11:12AM (#21364122)
Or ‘grep foo file.txt’
Re:An Illustrated Guide to Useful Command Line Tools by Zhyl on Saturday October 26, 2019 @03:40PM (#21365729)
What's the name of the bash feature with the '<' before the filename? I want to read the docs on it but I don't even know what to search for.
Re:An Illustrated Guide to Useful Command Line Tools by detaro on Saturday October 26, 2019 @03:46PM (#21365763)