[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] A do nothing function
From: |
Peng Yu |
Subject: |
[Help-bash] A do nothing function |
Date: |
Thu, 27 Sep 2012 11:24:01 -0500 |
Hi,
I have to use cat if just want to pass the stdin to stdout. But this
requires calling cat. Is there a more efficient way to just past stdin
to stdout?
/tmp$ cat test.sh
#!/usr/bin/env bash
function cmd {
cat
}
echo xxxx | cmd | cat
--
Regards,
Peng
- [Help-bash] A do nothing function,
Peng Yu <=