From 8598c4266f2b1c60df147f2a7e8fbbc8750a6391 Mon Sep 17 00:00:00 2001 From: Rekii Date: Sat, 24 May 2014 09:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A0=E5=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 《Bash Getopts – Scripts with Command Line Options》 --- .../tech/Bash Getopts--Scripts with Command Line Options.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/tech/Bash Getopts--Scripts with Command Line Options.md b/sources/tech/Bash Getopts--Scripts with Command Line Options.md index 8bac7d40db..bbdb7fde84 100644 --- a/sources/tech/Bash Getopts--Scripts with Command Line Options.md +++ b/sources/tech/Bash Getopts--Scripts with Command Line Options.md @@ -1,3 +1,5 @@ +CNprober 翻译中<619913541,travelwithheart@yeah.net> + Bash Getopts – Scripts with Command Line Options ================================================================================ I've always wanted to know how to create command line options for my Bash scripts. After some research I found there are two functions available to handle this; **getopt** and **getopts**. I'm not going to get into the debate about which one is better. **getopts** is a shell builtin and seems a little easier to implement than **getopt**, so I'll go with that for now. @@ -157,4 +159,4 @@ via: http://tuxtweaks.com/2014/05/bash-getopts/ 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 -[1]:http://tuxtweaks.com/2014/05/bash-getopts/www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html \ No newline at end of file +[1]:http://tuxtweaks.com/2014/05/bash-getopts/www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html