Re:Copying stdin to stdout in Java
by sadfnjksdf on Wednesday March 26, 2014 @06:54AM
(#7472610)
grep is even shorter:
That reads lines from stdin and echoes to stdout.
[ Parent
| on HN ]
Grep expressions are not a turing-complete language, so I guess that won't count. You could claim that you solved the task using a shell script (that invoked the grep "function") but if you programmed in shell, the shortest solution AFAICS is
#!/bin/sh
cat