if-elif-else使用
来源:互联网 发布:2016年淘宝卖家数量 编辑:程序博客网 时间:2024/05/19 06:35
#! /bin/sh - who | wc -lread Tif [ "$T" -lt "10" ] ;thenecho "df"elif [ "$T" -ge "10" -a "$T" -le "20" ] ;thenecho "gg"elseecho "cc"fifunction myfun(){return 1}if myfun;then echo "myfun success"else echo "myfun error"fimyfunc()函数返回1,则打印
myfun error
0 0
- if-elif-else使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if, #elif, #else, #endif 使用
- #if、#elif、#else、#endif的使用
- #if,#ifdef,#ifndef, #elif, #else, #endif 使用
- if-elif-else
- 从Java到C++——union的用法
- 一些数组的算法题
- Binary Tree Preorder Traversal -先序遍历
- spoj7258 Lexicographical Substring Search(SUBLEX) 后缀自动机
- LeetCode 80 Remove Duplicates from Sorted Array II
- if-elif-else使用
- 实际工作中,Eclipse常用的快捷键
- Linux Shell常用技巧
- css常用布局方式和技巧
- 【男士必须收藏】男士健身方法
- 由矩阵元素的下标值i,j求矩阵元素
- CTime类
- Java线程:概念与原理
- Java线程:创建与启动