1.【Linux】shell 脚本 (.sh) 编写及执行
shell脚本
shell脚本就是一些命令的集合
#!/bin/bash echo "文件开头代表:该文件使用的是bash语法"
例子链接【Linux】shell 脚本 (.sh) 编写及执行 - lclc - 博客园
2.手机上跑的sh脚本
#!/system/bin/sh
am start -a android.intent.action.SENDTO -d sms:6666666666 --es sms_body "Hello, World!" --ez exit_on_sent true
Android怎么执行sh文件_mob649e8164659f的技术博客_51CTO博客
主要区别是开头不一样,#!/bin/bash和#!/system/bin/sh