input-stdin.sh 169 B

1234567
  1. #!/usr/bin/env bash
  2. function _cat {
  3. cat /dev/stdin
  4. }
  5. echo -e 'This content is passed to a function through piping.\nIf this echoes, the process is successful.' | _cat