标签: linux bash
我有两个脚本:script1.sh和script2.sh。 script1.sh正在执行script2.sh。这就是它的样子:
#!/bin/bash ./script2.sh
如何在script2.sh中显示执行哪个脚本?例如
./script1.sh
然后我有一个输出
script2.sh was executed by script1.sh