有没有办法在bash中有效地做到这一点:
/my/bash/script < echo 'This string will be sent to stdin.'
我知道,我可以管道输出从回声,如:
echo 'This string will be piped to stdin.' | /my/bash/script