编写脚本:
#!/bin/bash
a=Hello;
b=world;
echo "$a $b!";
保存为test.sh.
两种方式启动:
1.相对路径:sh test.sh
2.绝对路径:sh /home/uses/test.sh
编写脚本:
#!/bin/bash
a=Hello;
b=world;
echo "$a $b!";
保存为test.sh.
两种方式启动:
1.相对路径:sh test.sh
2.绝对路径:sh /home/uses/test.sh