#! /bin/bash
if Iam; then
echo "it worked two"
else ls
echo "I am in the else"
fi
相关文章
- Linux shell命令行参数解析getopts/getopt用法详解
- 【linux】Shell脚本三剑客之grep和egrep命令的详细用法攻略
- 【linux】Shell脚本三剑客之awk命令的详细用法攻略
- shell 命令 if elif else fi 用法
- Linux笔记——常用命令详解及Shell脚步基本用法
- Shell脚本字符串匹配及日常命令工具 - 用法总结(技巧指南)
- shell脚本中的sed命令用法
- Linux centosVMware shell脚本介绍、shell脚本结构和执行、date命令用法、shell脚本中的变量
- SHELL脚本--tr命令用法和特性全解
- 【转载】HBase基本概念和hbase shell常用命令用法