When a user redirects the output of cat via a | to some other program, cat becomes so much more than what the original author intended. This is one of the most brilliant design patterns, in my opinion. For one, programs being simple and doing one thing well makes them easy to grok. The beautiful part, though, is the fact that in combination with a operator like | the program becomes one step in a much larger plan. The original author of cat does not even need to know about the larger plan. That is the beauty of the | it allows for solving problems by combining small, simple programs together.
Cutouts is an open source application. Code licensed under the MIT license. Copyright 2018 Siddharth Kannan