创建一个txt文件,像其中写入一段文字
#!/bin/bash
touch banzhang.txt
echo "Hello World" >> banzhang.txt
shell脚本的运行方式
1.sh xxx
2.bash xxx
3. 使用chmod +x xxx将当前shell脚本改为可执行,直接执行
创建一个txt文件,像其中写入一段文字
#!/bin/bash
touch banzhang.txt
echo "Hello World" >> banzhang.txt
shell脚本的运行方式
1.sh xxx
2.bash xxx
3. 使用chmod +x xxx将当前shell脚本改为可执行,直接执行