我正在制作一个 shell 脚本,我想知道是否可以在脚本执行时直接写入命令行?
示例:
user@localhost:/home/user$./script.sh
... output
... another output
... another output
... last output
user@localhost:/home/user$I want to write here on the command line
我不想“回显”某些文本,我想直接在提示符下写入。
谢谢!
最佳答案
不,你不能那样做。如果您希望用户在脚本完成后调用您提供的命令 - 为什么不提示用户进行确认?
关于linux - shell 脚本 : how to output to command line?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3550640/