举例一:

[xiluhua@vm-xiluhua][~/shell_script]$ cat forDemo1.sh
#=======================================================================================
#/bin/bash
#auth: xiluhua
#date:
#desc: print file list in a directory
#======================================================================================= [ -z $ ] && echo "exception@1: directory can not be null" && exit echo "prompt: print file list in a directory ..."
for file in $(ls $/*.123)
do
echo $file
done
exit 0

举例二:

[xiluhua@vm-xiluhua][~/shell_script]$ cat forDemo2.sh
#=======================================================================================
#/bin/bash
#auth: xiluhua
#date:
#desc: print triangle with *
#======================================================================================= for (( i=; i<; i++ ))
do
let space=-$i
#echo $space
for (( j=; j<${space}; j++ ))
do
printf " "
done let star=*$i+
for (( k=; k<$star; k++ ))
do
printf "*"
done echo ""
done

最新文章

  1. spring-mvc注解(mvc:annotation-driver,JSON,配置详解)
  2. vue学习之旅
  3. hdu1561 The more, The Better (树形dp+背包)
  4. 希望早几年知道的5个Unix命令
  5. Python 字典(Dictionary) get()方法
  6. 高效使用Bitmaps(二) 后台加载Bitmap
  7. jquery1.9学习笔记 之选择器(基本元素一)
  8. php修改配置文件php.ini设置文件上传大小讲解
  9. Grid++Report 报表开发工具
  10. 基于HTTP协议下载文件的实现
  11. cocos2d-x 颜色
  12. [转]Introduction to Core Bluetooth: Building a Heart Rate Monitor
  13. 7.ReadWriteLock接口及其实现ReentrantReadWriteLock
  14. $PkuWc\ 2018$ 酱油记
  15. CarbonData-1:common
  16. 单元测试-unittest
  17. CTF的一道安卓逆向
  18. 【快捷键】IntelliJ IDEA For Mac 常用快捷键
  19. STATA一小步 我的一大步
  20. ibatis (mybatis) for循环拼接语句【转】

热门文章

  1. node.js render模板
  2. 一表格简单明了区分BI和大数据
  3. MVC 读书笔记
  4. 操作系统:进程管理和IO控制
  5. 数据库调优过程(一):SqlServer批量复制(bcp)[C#SqlBulkCopy]性能极低问题
  6. C++之路进阶——bzoj1030(文本生成器)
  7. kafka管理器kafka-manager部署安装
  8. archlinux锁屏
  9. 由ccf第一题引出的问题
  10. Openstack的HA解决方案【替换原有的dashboard】