admin 管理员组文章数量: 1086019
2024年1月22日发(作者:gets会把回车存入吗)
for shname in `ls *.sh`;do
name=`echo "$shname" | awk -F. '{print $1}'`
echo $namedone./_01testfor((i=1;i<50;i++));do if(((i%3)==0)); then echo $i fidone./369738min=1max=20while [ $min -le $max ];do echo $min min=`expr $min + 1`done./
17181920函数function name(){ # inside the body $1 is the first argument given to the function
# $2 the second ...
body}#!/bin/shfunction usage(){ echo "usage()------------start" echo "-----------------------" echo "usage()-------------end"}usage./e()------------start-----------------------usage()-------------endexpr四则计算:a1=10a2=20a3=`expr $a1 + $a2`echo "========================="echo "a3=$a3"echo "========================="a4=`expr 10 + 12`echo "a4=$a4"echo "========================="
版权声明:本文标题:android开发笔记之sh脚本 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1705913451a493585.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论