Getopts

Getopts

getopts is a common tool which programmers can use to process command-line arguments. It originated in the UNIX shell environment, where it could be invoked from shell scripts. It has now been ported to many other programming languages.

Typical implementations support complex command-line patterns. The specification usually allows for long and short parameter names, default values for arguments not provided, and declaration of mandatory versus optional parameters. The command-line arguments are effectively transformed into a data structure or set of data structures which the program can inspect to determine what was requested on the command-line.

References

*man|cu|getopts|SUS|process command line arguments

See also

*List of Unix programs


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • bash — У этого термина существуют и другие значения, см. Bash (значения). GNU Bourne Again SHell Типичная сессия в bash …   Википедия

  • List of Unix utilities — This is a list of UNIX utilities as specified by IEEE Std 1003.1 2008, which is part of the Single UNIX Specification (SUS). These utilities can be found on UNIX Operating systems and most UNIX like operating systems. List IEEE Std 1003.1 2008… …   Wikipedia

  • Shell builtin — In computing, a shell builtin is a command or a function, called from a shell, that is executed directly in the shell itself, instead of an external executable program which the shell would load and execute.Shell builtins work significantly… …   Wikipedia

  • Programas para Unix — Anexo:Programas para Unix Saltar a navegación, búsqueda Plantilla:Listas Ésta es una lista de software disponible para sistemas operativos Unix y similares como GNU/Linux. Según corresponda se trasladarán a las subcategorías de la Categoría… …   Wikipedia Español

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • AWK — Класс языка: скриптовый, процедурный, событийно ориентированный Появился в: 1977 Автор(ы): Альфред Ахо, Питер Вайнбергер и Брайан Керниган Релиз …   Википедия

  • Wget — GNU Wget Тип менеджер загрузок Автор Hrvoje Nikšić …   Википедия

  • Mkdir — Тип программа для создания новых каталогов Разработчик Проект GNU Написана на C Операционная система Unix подобные Последняя версия 8.5 (23 апреля 2010) Лицензия …   Википедия

  • Netstat — команда unix и Windows Содержание 1 Синтаксис 2 Описание 3 Использование 4 Оп …   Википедия

  • GNU Coreutils — GNU Core Utilities Тип Miscellaneous Utilities Разработчик GNU Project Написана на C Операционная система Unix подобные ОС Последняя версия 8.20 (23 октября 2012) …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”