I am not a native English speaker, so please excuse the awkward title of this question. I just did not know how to formulate this correctly.
I am in the FreeBSD window, and I have a small filter tool written in Cthat reads a list of data through stdinand displays the processed list through stdout. I call it like this: find . -type f | myfilter > /tmp/processed.txt.
Now I want to give my filter a little more information and publish it. The Convention states that tools should allow something like this:find . -type f | myfilter -f - -o /tmp/processed.text
This will force me to write code that is simply not needed, since the shell can do the job, so I try to leave it out.
My question is: can I skip any argument (another, but convention), why the reading and writing of files should be done in my code, and not be delegated to shell redirection?
source
share