
shell
lokott
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
解决Linux服务器执行出现-bash: ./xxx.sh: /bin/sh^M: bad interpreter: No such file or directory
解决Linux服务器执行出现-bash: ./xxx.sh: /bin/sh^M: bad interpreter: No such file or directory 1、可能是您的开头脚本命令错误符号问题;一般不常见 2、高概率是由于您所使用的文件格式不兼容,例如你在sublime上编写的脚本,格式是dos的,而在linux操作系统上应该是Unix的,使用vim编辑器打开脚本文件,末行模式执行...原创 2020-03-28 22:15:59 · 1841 阅读 · 0 评论 -
shell 脚本实现乘法口诀表的两种方法——shell命令与C语言
shell 脚本实现乘法口诀表的两种方法——shell与C语言 话不多说直接给出代码: 1 #!/bin/bash 2 if [ $# -eq 0 ] //用于判断输入的参数个数为0 3 then 4 echo "welcome you!" 5 echo "this is a test with 2 metho...原创 2019-11-08 13:38:29 · 2168 阅读 · 0 评论