• 0 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2024

help-circle


  • Thanks for the explanation, I was wondering if it had to do with CPU cycles.

    I guess I’ll continue to use cat for short files to sdout and less for longer files, if there is no actual repercussion. It’s just such a common “don’t do this” topic I was wondering if there was a good reason not to.

    I think the beer in the “wrong” glass might be an apt metaphor – it might be fancier to use a specific glass, knowing the history, appreciating the golden color of the beer, (it might also affect the head on the pour? Idk) but there is also nothing wrong with drinking it out of a normal glass.

    Edit: I’ve never used view, but I have a distant memory of once using more instead of less.


  • I guess I still don’t understand why?

    The end result is that the contents of the file ends up in the STDOUT.

    For your other examples, if you use a hammer to push a screw into wood, it won’t be secure and it damages the wood. Using a board to drive a dowel through a plank might work in a pinch, but it is easier to use a hammer.

    What is the bad thing that happens if you use cat for its side effect rather than to concatenate?