1、首先再Idea上安装BashSupport插件

Idea中运行shell脚本

 

 

2、编写firstshell.sh

msg='hello world'
echo $msg

  

3、增加配置

Idea中运行shell脚本

 

 

4、运行firstshell.sh

Idea中运行shell脚本

 

 

输出结果如下:

Idea中运行shell脚本

 

相关文章: