Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 shell 脚本,它会将另一个 shell 脚本打印到标准输出。我需要使用单行 bash 命令执行这两个脚本(初始脚本和输出脚本)。是否可以?
也许是这样的:
sh ./test.sh | sh
尝试这样做:
bash test.bash | bash -s