I just made a program that looks like cowsay. https://www.opendesktop.org/p/1271477/
This takes arguments, but I can't redirect stdouts to this program. What I want to do is like:
cat a_file.txt | cowspeak
Or
echo "Hello" | cowspeak
I have seen "lolcat" supports this (using trollop, I believe). I want to write it from scratch. How do I do that just in a single file?
cat" anti-pattern, it should becowspeak < a_file.txtinstead.cowspeak. If it doesn't, then there is something wrong with your shell.