【脚本】shell 中 continue 的用法
2014-11-03 14:56
218 查看
链接:http://bbs.chinaunix.net/thread-3576886-1-1.html
#!bin/bash
#the script for continue
for name in $(cat namelist)
do
if [[ $name == ^e? ]]
then
continue
else
echo "$name"
fi
done
#!bin/bash
#the script for continue
for name in $(cat namelist)
do
if [[ $name == ^e? ]]
then
continue
else
echo "$name"
fi
done
相关文章推荐
- 高级shell脚本编程之重定向、环境变量、shell函数、echo命令用法
- shell [ 函数的一些用法 continue, 点. ]
- Shell脚本中让进程休眠的方法(sleep用法)
- shell脚本学习之Bash shell 里各种括号的用法
- shell脚本之循环语句for,while,until用法的详解
- Shell脚本中几种条件表达式的用法
- shell脚本编程---cut的一个用法
- Shell脚本数组用法小结
- Shell脚本的test命令用法
- 不知道的shell用法和脚本
- shell脚本系列-grep用法总结
- shell脚本中的shift的用法
- Magento Event/Observer的用法//// shell运行脚本
- shell用法和脚本,简单&强大
- Shell脚本break和continue命令简明教程
- shell脚本的一些用法笔记
- Shell脚本及Python的一些用法
- Shell脚本中date的用法小结
- shell脚本学习之if..else用法
- shell脚本学习之$0,$?,$!等的特殊用法