有没有办法在bash中有效地做到这一点:
/my/bash/script < echo 'This string will be sent to stdin.'
我知道我可以管道回声的输出,如下所示:
echo 'This string will be piped to stdin.' | /my/bash/script
bash redirect stdin io-redirection
bash ×1
io-redirection ×1
redirect ×1
stdin ×1